RestController Spring, how to limit the number of requests! [closed]

1

Dear friends, I have an API Rest with RestController of Spring, it receives hundreds of concurrent posts, and with each post, I need to query and store data in the database. The problem is that this is generating an absurd processing on the machine!

Is there a way to limit the number of posts or put some on hold?

    
asked by anonymous 08.12.2017 / 06:04

1 answer

1

Maybe, if you implement an asynchronous solution the problem will be solved. Check out this material . With an asynchronous implementation, your system will not be locked upon receiving a request that requires longer processing. I hope you have helped him.

    
09.12.2017 / 01:24