Re: Limit Concurrent Access

2016-10-04 Thread Brad Johnson
@Vitalii, I'm not sure. It sounds like he wants to receive a call and then process it but I'm not positive. That's why I was asking for a clearer definition. Here's one of the initial statements. "In our use case we are doing lot of crunching, DB and external REST service calls? There is a lim

Re: Limit Concurrent Access

2016-10-03 Thread yogu13
the licenses purchased by client. Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Limit-Concurrent-Access-tp5788278p5788336.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Limit Concurrent Access

2016-10-03 Thread Vitalii Tymchyshyn
I am not sure that Debraj was talking about incoming calls. And I was also looking for a way to limit number of concurrent exchanges being sent to given endpoint. In the Async scenario even thread pool can't help because one can make unlimited number of exchanges with one thread. And Throttler does

Re: Limit Concurrent Access

2016-10-03 Thread Brad Johnson
. Unless you feel there couldnt > be > a issue when you use it. > > Other approach is by using Route Policy > <http://camel.apache.org/routepolicy.html> > > Regards, > -Yogesh > > > > -- > View this message in context: http://camel.465427.n5.nabble. > com/Limit-Concurrent-Access-tp5788278p5788304.html > Sent from the Camel - Users mailing list archive at Nabble.com. >

Re: Limit Concurrent Access

2016-10-03 Thread yogu13
I think throttler can be used in your case. Unless you feel there couldnt be a issue when you use it. Other approach is by using Route Policy <http://camel.apache.org/routepolicy.html> Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Limit-Conc

Re: Limit Concurrent Access

2016-10-02 Thread Brad Johnson
Ah, so you aren't really concerned about the incoming calls, per se, it's the number of outgoing calls. And to limit that you want to limit the incoming calls? Are the incoming calls sending data in that can be processed asynchronously or are they returning chunks of data to the caller? On Sat,

Re: Limit Concurrent Access

2016-10-01 Thread Debraj Manna
Thanks Brad for replying. In our use case we are doing lot of crunching, DB and external REST service calls? There is a limit on external REST service calls we can make. I can restrict the call to external services using a thread pool. But I was thinking if it is possible to limit when receiving t

Re: Limit Concurrent Access

2016-10-01 Thread Brad Johnson
The first question I'd have is "are you sure you have a problem with the number of incoming requests?" One of the biggest problems I find in the field is premature optimization. If you have a fairly good characterization of the problem, the number of requests anticipated, the length of time to pro

Limit Concurrent Access

2016-10-01 Thread Debraj Manna
Hi I have seen Throttler in camel. Is there anything available in camel that restricts the number of concurrent accesses something like this as mentioned here