Question
Capgemini Sverige AB
SE
Last activity: 20 Sep 2019 3:29 EDT
How to restrict active threads in an Asynchronous service?
Hi,
We have exposed an asynchronous Service-REST to an external application, where it sends multiple requests for batch processing.
We want to restrict the number of threads to 10 or 20 to process at a time, either we have to keep remaining requests in Queue or let the external system know that our queue is busy.
Could you please suggest best approach to acheive this?
Thanks,
Srini