Hi Lahiru, As far as I can remember, you no longer need to have empty throttle mediator tag in OUT sequence, with same throttle id as in IN sequence. This empty throttle mediator tag served purpose of decrementing concurrency throttling counter ( number or parallel flows ) which was incremented IN sequence throttle mediator. However in order to support concurrency throttling for out only flows as well, we did some modifications as per [1] users no longer need to explicitly add to OUT sequence, those are now internally handled. Additionally throttle mediator will only engage on request message paths. Have you tried samples without throttle mediator in out sequence? I think it should work without a issue. Seems these samples need to be updated. [2]
[1] https://github.com/wso2/wso2-synapse/pull/26 [2] https://docs.wso2.com/display/ESB500/Throttle+Mediator Regards Kevin On Fri, Dec 22, 2017 at 4:28 AM, Lahiru Sandaruwan <lahi...@wso2.com> wrote: > Hi, > > As per [1], when throttling mediator is used in out sequence, it should be > one liner, such as <throttle id="ip-throttling">. But when we save that in > Developer studio, it expands to following, > > <throttle id="ip-throttling"> > <onReject/> > <onAccept/> > </throttle> > > Looks like a bug. Could we fix? > > [1] https://docs.wso2.com/display/EI611/Sample+372%3A+ > Use+of+Both+Concurrency+Throttling+and+Request-Rate-Based+Throttling > > Thanks. > -- > -- > > Lahiru Sandaruwan > Associate Technical Lead, > WSO2 Inc., http://wso2.com > > lean.enterprise.middleware > > m: +1 901 530 2379 <(901)%20530-2379> > e: lahi...@wso2.com b: https://medium.com/@lahirugmg > in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > > -- *Kevin Ratnaskera* Software Engineer WSO2 Inc. - http://wso2.com lean . enterprise . middleware Mobile - +94774696950 Linkedin - https://www.linkedin.com/in/djkevincr
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev