Hi,

As per the offline discussion. I can explain Nirdesha what I meant by
successful hits so that she can improve document in a way user can clearly
understand how throttling works.

Cheers!

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
[email protected]

On Thu, Apr 30, 2015 at 11:21 AM, Nirdesha Munasinghe <[email protected]>
wrote:

> Sewmini, will look into the JIRA. Thanks for the info.
>
> On Thu, Apr 30, 2015 at 11:16 AM, Nirdesha Munasinghe <[email protected]>
> wrote:
>
>> Thanks for the clarification, Ushani. I missed that it is the same API
>> being invoked.
>>
>> On Thu, Apr 30, 2015 at 8:38 AM, Ushani Balasooriya <[email protected]>
>> wrote:
>>
>>> Hi Nirdesha,
>>>
>>> In this use case, the same API is being invoked but 2 different
>>> resources. E.g., GET, PUT
>>> So for the first resource (Bronze) it will count as 1 and next 2
>>> requests for the same resource  will exceed the resource level throttling.
>>>
>>> Next invocation for the 2nd resource will accept only 4 requests in the
>>> same minute since the whole API level throttling is silver (5)
>>> So the 5th request will not be successful due to the API level
>>> throttling (4+1)
>>>
>>>
>>> On Wed, Apr 29, 2015 at 10:06 PM, Nirdesha Munasinghe <[email protected]
>>> > wrote:
>>>
>>>> Hi Ushani,
>>>>
>>>> Why would the last request (5th one) fail to resource 2 please? Silver
>>>> throttling tier allows 5 requests per minute, isn't it?
>>>>
>>>> Thanks,
>>>> -Nirdesha
>>>>
>>>> On Wed, Apr 29, 2015 at 3:36 PM, Ushani Balasooriya <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi Sewmini,
>>>>>
>>>>> I think it should work like,
>>>>>
>>>>> 1st 3 requests to Resource  1 = 1st request successful, Next 2
>>>>> requests unsuccessful due to resource level throttling.
>>>>> Next 5 requests 2 Resource 2 = 1st 4 requests should be successful and
>>>>> last one should be unsucessful due to API level throttling.
>>>>>
>>>>>
>>>>>
>>>>> On Wed, Apr 29, 2015 at 3:23 PM, Chathurika De Silva <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hi Sewmini
>>>>>>
>>>>>> In your case since you have sent 5 requests to the both of the
>>>>>> resources these will be successful due to your API level throttling tier
>>>>>> being 5. After that requests will be terminated.
>>>>>>
>>>>>> Please find the below documentation that will be a help to you
>>>>>>
>>>>>> https://docs.wso2.com/display/AM180/Key+Concepts#KeyConcepts-Throttlingtiers
>>>>>>
>>>>>> Thank You
>>>>>> Erandi
>>>>>>
>>>>>>
>>>>>> On Wed, Apr 29, 2015 at 3:14 PM, Sewmini Jayaweera <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Ushani,
>>>>>>>
>>>>>>> When I say unsuccessful, what i meant was request fails due to
>>>>>>> resource level throttling exceeding.
>>>>>>> Say I have given
>>>>>>>
>>>>>>> API level throttling - silver (5)
>>>>>>> App level throttling - unlimited
>>>>>>> API resource 1 throttling - bronze (1)
>>>>>>> API resource 2 throttling - unlimited
>>>>>>>
>>>>>>> When I send first three requests to resource 1 and next 5 requests
>>>>>>> to resource 2, my last 3 request should fail due to API level 
>>>>>>> throttling is
>>>>>>> it ?
>>>>>>>
>>>>>>> Thanks & Regards,
>>>>>>> Sewmini
>>>>>>>
>>>>>>> Sewmini Jayaweera
>>>>>>> *Software Engineer - QA Team*
>>>>>>> Mobile: +94 (0) 773 381 250
>>>>>>> [email protected]
>>>>>>>
>>>>>>> On Wed, Apr 29, 2015 at 2:48 PM, Ushani Balasooriya <[email protected]
>>>>>>> > wrote:
>>>>>>>
>>>>>>>> Hi Sewmini,
>>>>>>>>
>>>>>>>> AFAIK, throttling count will start when the API is invoked.
>>>>>>>> Therefore it should be a successful invocation. First it checks API 
>>>>>>>> level
>>>>>>>> throttling limit and then Application level throttling limit and then 
>>>>>>>> it
>>>>>>>> goes to resource level throttling check.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Ushani
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Apr 29, 2015 at 1:59 PM, Sewmini Jayaweera <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> In API manager throttling functionality, How exactly the
>>>>>>>>> throttling tier exceed?
>>>>>>>>>
>>>>>>>>> 1. At the end of 20 successful invocations/hits or
>>>>>>>>> 2. When total number of hits (successful and faulty) exceeds 20?
>>>>>>>>>
>>>>>>>>> When I test this in both API manager 1.8.0 and 1.9.0 packs, count
>>>>>>>>> was taken using number of successful hits. Therefore I reported [1]
>>>>>>>>> documentation Jira.
>>>>>>>>>
>>>>>>>>> Please do verify and let me know if the functionality is wrong.
>>>>>>>>>
>>>>>>>>> [1].  https://wso2.org/jira/browse/DOCUMENTATION-1665
>>>>>>>>> <https://wso2.org/jira/browse/DOCUMENTATION-1665>
>>>>>>>>>
>>>>>>>>> Thanks & Regards,
>>>>>>>>> Sewmini
>>>>>>>>>
>>>>>>>>> Sewmini Jayaweera
>>>>>>>>> *Software Engineer - QA Team*
>>>>>>>>> Mobile: +94 (0) 773 381 250
>>>>>>>>> [email protected]
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Dev mailing list
>>>>>>>>> [email protected]
>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> *Ushani Balasooriya*
>>>>>>>> Senior Software Engineer - QA;
>>>>>>>> WSO2 Inc; http://www.wso2.com/.
>>>>>>>> Mobile; +94772636796
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Dev mailing list
>>>>>>> [email protected]
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Chathurika Erandi*
>>>>>> Software Engineer,
>>>>>> WSO2 Inc.
>>>>>>
>>>>>> *E-mail:* [email protected]
>>>>>> *Mobile: *+94714 328 612
>>>>>> *Blog*: chathurikaerandi.blogspot.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Ushani Balasooriya*
>>>>> Senior Software Engineer - QA;
>>>>> WSO2 Inc; http://www.wso2.com/.
>>>>> Mobile; +94772636796
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Thanks,
>>>>
>>>> Nirdesha Munasinghe,
>>>> WSO2 Inc.
>>>> Web:http://wso2.com
>>>>
>>>> Mobile: +94 776321920
>>>>
>>>
>>>
>>>
>>> --
>>> *Ushani Balasooriya*
>>> Senior Software Engineer - QA;
>>> WSO2 Inc; http://www.wso2.com/.
>>> Mobile; +94772636796
>>>
>>>
>>
>>
>> --
>>
>> Thanks,
>>
>> Nirdesha Munasinghe,
>> WSO2 Inc.
>> Web:http://wso2.com
>>
>> Mobile: +94 776321920
>>
>
>
>
> --
>
> Thanks,
>
> Nirdesha Munasinghe,
> WSO2 Inc.
> Web:http://wso2.com
>
> Mobile: +94 776321920
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to