Enfore single thread handling of parallel webservice calls

0
Hi, Given an application that offers webservices using the RestServices module, how can it handle 1.000+ webservice calls per minute where each call does database lookups? The issue that I run into is that the PostgreSQL connection pool blows up. The Queue module is not an option because it works async from the original process. So I want to enforce single threaded handling with some kind of queueing, but to prevent this burst of activity. I look forward to your suggestion. Btw, this is still Mx 5.21.   Kind regard, Paul    
asked
1 answers
0

Hi Paul,

Why do you not write your own manager who handles the permissions of database lookups  and orders the incoming request with a number. The manager then gives permissions to the number of threads you want to allow access.

All incoming request now have to wait untill, managers grants access.

answered