Re: Throttling based on content in camel

2014-12-15 Thread yogu13
Hi, Looking at the documentation says that ThrottlingInflightRoutePolicy does throttling that is approximate based, meaning that its more coarse grained and not explicit precise as the Throttler (did a poc and coul. Also it looks like the RoutePolicy applies to the entire Route when compared to

Re: Throttling based on content in camel

2014-12-13 Thread Willem Jiang
+1 to create a new ThrottlingContentBasedRoutePolicy, and we can do some refactoring to let ThrottlingContentBasedRoutePolicy and  ThrottlingInflightRoutePolicy share some common logic in a super class. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.

Re: Throttling based on content in camel

2014-12-11 Thread yogu13
Hello Daniel, We are looking for throttling but with a slight deviation that we limit the concurrent executions for every client and the exceeded ones will have to wait till a free slot is available. Looking at async model doesnt seem to do the trick for us. Thank you! Regards, -Yogesh -- Vi

Re: Throttling based on content in camel

2014-12-11 Thread Daniel Pocock
On 11/12/14 16:38, yogu13 wrote: > Hello Williem, > > We would like a lock to be implemented instead of any async delay as the > requirement is to allow X number of processing threads to be allowed for a > particular customer at any given point in time. If the number of requests > exceed X then

Re: Throttling based on content in camel

2014-12-11 Thread yogu13
on further look at the existing code the startConsumer and stopConsumer can also be used for used instead of locks.. Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Throttling-based-on-content-in-camel-tp5760505p5760582.html Sent from the Camel - Users maili

Re: Throttling based on content in camel

2014-12-11 Thread yogu13
Hello Williem, We would like a lock to be implemented instead of any async delay as the requirement is to allow X number of processing threads to be allowed for a particular customer at any given point in time. If the number of requests exceed X then the spilled ones needs to be blocked till any

Re: Throttling based on content in camel

2014-12-11 Thread Willem Jiang
We love contribution, please submit your Pull Request once you finish the feature. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On December 11, 2014 at 7:23:22 P

Re: Throttling based on content in camel

2014-12-11 Thread Willem Jiang
On December 11, 2014 at 12:55:03 AM, yogu13 (yogesh@synechron.com) wrote: > > Hi, > > We need to do throttling based on id which is received as part of the > request but what I see that the default implementation of > org.apache.camel.impl.ThrottlingInflightRoutePolicy is based on pre

Re: Throttling based on content in camel

2014-12-11 Thread yogu13
Any thoughts ?? or am i addressing a wrong group here ... We are looking out for this feature in camel and i would be happy to contribute this. Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Throttling-based-on-content-in-camel-tp5760505p5760556.html Sent