Hi,

I'm using Camel alongside ServiceMix.  I want to get advise on how to
properly use the Throttler for a particular scenario.  I have a use case
where clients sending requests to ServiceMix will have different Quality of
Service values based on their gven credentials.  Once the request is
received, an LDAP server will be queried for the client's appropriate QoS
value.  This value is then intended to be used as the throttler value in the
DSL definition:

from("jbi:service:...").throttle(<retrieved QoS value>).to("...");

Question 1:  does this approach ensure that the different clients would be
throttled differently for the same endpoint? 

Question 2:  In this scenario the LDAP server is queried for the throttle
value every request and then set to the DSL each time.  I feel like this
isn't quite a good approach to throttling.  Wouldn't doing this somehow
reset the throttler each time per request?  What would be a good approach to
avoid resetting the throttle value each time and make successive requests
from the same client count towards the first throttle value set?


-- 
View this message in context: 
http://www.nabble.com/Suggestions-on-setting-different-Throttler-values-per-Client-tp23868691p23868691.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to