Whats are QUOTA_POLICY_TYPE, QUOTA attributes

Throttling can be done based on Request Count (Eg: 4000 req/5 min) or based
on Bandwidth (Eg: 100 MB/1 hour). QUOTA_POLICY_TYPE is either
"RequestCount" or "Bandwidth". QUOTA is the number of requests or the
bandwidth allowed.

why are these duplicated in AM_POLICY, AM_CONDITION tables?

Consider the scenario "Allow 20 req/min for requests coming from a
particular ip address range and allow 10 req/min for others". In the above
scenario the quota 20 req/min is relevant to condition (AM_CONDITION table)
and 10 req/min is the default quota relevant to Policy (AM_POLICY table).


On Thu, Mar 3, 2016 at 5:42 PM, Nuwan Dias <[email protected]> wrote:

> The condition table needs to hold the Resource URI template as well.
>
> On Thu, Mar 3, 2016 at 4:28 PM, Upekka Anuruddhi <[email protected]> wrote:
>
>> Hi All,
>>
>> This is the database design for saving throttling policies in CEP Based
>> Throttling engine for API Manager.
>> Please share your ideas and suggestions on this.
>>
>> Thanks.
>> Upekka
>> ​
>>
>> --
>> *Upekka Pathirana*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>> Mobile : +94 (0) 714 868488
>> [email protected]
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : [email protected]
> Phone : +94 777 775 729
>



-- 
*Upekka Pathirana*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 714 868488
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to