Question

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

Comments

Keep up to date on this post and subscribe to comments

September 19, 2019 - 8:04am

What is your Pega version and application server you are running on?

September 20, 2019 - 3:29am
Response to KevinZheng_GCS

Hi Kevin,

It's 7.2.2 version and application server is Jboss.

Thanks,

Srini