Re: [Dev] [APIM 2.0]What is the order of matching Conditional groups in Advance Resource Throttling?

2016-06-10 Thread Ushani Balasooriya
Thanks for the clarification Harsha

On Fri, Jun 10, 2016 at 4:24 PM, Harsha Kumara  wrote:

> Hi Ushani,
>
> On Fri, Jun 10, 2016 at 2:28 PM, Ushani Balasooriya 
> wrote:
>
>> Hi Harsha,
>>
>> Additionally please explain how it should behave if the request matches
>> one conditional group and default conditional group as well.
>>
> There is no possibility of request being applying to conditional group and
> a default policy. If one request match two conditional groups, one with
> lowest request count will be throttle out first.
>
>>
>> Scenario 2 :
>> E.g.,
>>
>> E.g.
>> Conditional group 1 : JWT claim condition and Query Param Condition
>>
>> Conditional group 2 : Header condition
>>
>> A request matches both condition group1 and default request count is also
>> configured.
>>
>> Thanks,
>>
>> On Fri, Jun 10, 2016 at 2:17 PM, Ushani Balasooriya 
>> wrote:
>>
>>> Hi Harsha,
>>>
>>> In API Manager 2.0, Advance throttling configuration, if there are
>>> multiple conditional groups defined and if a request matches multiple
>>> conditional groups how it should work?
>>>
>>> Is there a priority that should be matched or should it match the lowest
>>> request count?
>>>
>>> Scenario :1
>>
>>> E.g.
>>> Conditional group 1 : JWT claim condition and Query Param Condition
>>>
>>> Conditional group 2 :Header condition
>>>
>>> A request matches both condition groups.
>>>
>> With the current design, policy which have lowest request count will be
> applied if request match that particular conditional group. However we are
> discussing the behavior of this further. Will update if we have done any
> changes.
>
>>
>>>
>>> Thanks,
>>> --
>>> *Ushani Balasooriya*
>>> Senior Software Engineer - QA;
>>> WSO2 Inc; http://www.wso2.com/.
>>>
>>>
>>
>>
>> --
>> *Ushani Balasooriya*
>> Senior Software Engineer - QA;
>> WSO2 Inc; http://www.wso2.com/.
>> Mobile; +94772636796
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



-- 
*Ushani Balasooriya*
Senior Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 2.0]What is the order of matching Conditional groups in Advance Resource Throttling?

2016-06-10 Thread Harsha Kumara
Hi Ushani,

On Fri, Jun 10, 2016 at 2:28 PM, Ushani Balasooriya  wrote:

> Hi Harsha,
>
> Additionally please explain how it should behave if the request matches
> one conditional group and default conditional group as well.
>
There is no possibility of request being applying to conditional group and
a default policy. If one request match two conditional groups, one with
lowest request count will be throttle out first.

>
> Scenario 2 :
> E.g.,
>
> E.g.
> Conditional group 1 : JWT claim condition and Query Param Condition
>
> Conditional group 2 : Header condition
>
> A request matches both condition group1 and default request count is also
> configured.
>
> Thanks,
>
> On Fri, Jun 10, 2016 at 2:17 PM, Ushani Balasooriya 
> wrote:
>
>> Hi Harsha,
>>
>> In API Manager 2.0, Advance throttling configuration, if there are
>> multiple conditional groups defined and if a request matches multiple
>> conditional groups how it should work?
>>
>> Is there a priority that should be matched or should it match the lowest
>> request count?
>>
>> Scenario :1
>
>> E.g.
>> Conditional group 1 : JWT claim condition and Query Param Condition
>>
>> Conditional group 2 :Header condition
>>
>> A request matches both condition groups.
>>
> With the current design, policy which have lowest request count will be
applied if request match that particular conditional group. However we are
discussing the behavior of this further. Will update if we have done any
changes.

>
>>
>> Thanks,
>> --
>> *Ushani Balasooriya*
>> Senior Software Engineer - QA;
>> WSO2 Inc; http://www.wso2.com/.
>>
>>
>
>
> --
> *Ushani Balasooriya*
> Senior Software Engineer - QA;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>


-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 2.0]What is the order of matching Conditional groups in Advance Resource Throttling?

2016-06-10 Thread Ushani Balasooriya
Hi Harsha,

Additionally please explain how it should behave if the request matches one
conditional group and default conditional group as well.

Scenario 2 :
E.g.,

E.g.
Conditional group 1 : JWT claim condition and Query Param Condition

Conditional group 2 : Header condition

A request matches both condition group1 and default request count is also
configured.

Thanks,

On Fri, Jun 10, 2016 at 2:17 PM, Ushani Balasooriya  wrote:

> Hi Harsha,
>
> In API Manager 2.0, Advance throttling configuration, if there are
> multiple conditional groups defined and if a request matches multiple
> conditional groups how it should work?
>
> Is there a priority that should be matched or should it match the lowest
> request count?
>
> Scenario :1

> E.g.
> Conditional group 1 : JWT claim condition and Query Param Condition
>
> Conditional group 2 :Header condition
>
> A request matches both condition groups.
>
>
> Thanks,
> --
> *Ushani Balasooriya*
> Senior Software Engineer - QA;
> WSO2 Inc; http://www.wso2.com/.
>
>


-- 
*Ushani Balasooriya*
Senior Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM 2.0]What is the order of matching Conditional groups in Advance Resource Throttling?

2016-06-10 Thread Ushani Balasooriya
Hi Harsha,

In API Manager 2.0, Advance throttling configuration, if there are multiple
conditional groups defined and if a request matches multiple conditional
groups how it should work?

Is there a priority that should be matched or should it match the lowest
request count?

E.g.
Conditional group 1 : JWT claim condition and Query Param Condition

Conditional group 2 :Header condition

A request matches both condition groups.


Thanks,
-- 
*Ushani Balasooriya*
Senior Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev