Restcontroller Spring, how to limit the number of requests!

Asked

Viewed 357 times

1

Dear friends, I have a API Rest with the RestController from Spring, it receives hundreds of simultaneous 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 in the machine!

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

1 answer

1

Perhaps, 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 when receiving a request that requires longer processing. I hope you helped him.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.