Spring Boot handeling requests one after another

Viewed 20

for an endpoint that assigns jobs to employees, I would like the requests to the endpoint to be processed sequentially so that it is not possible for multiple employees to sign up for a job. Is there a way to do this ? Or maybe even something better ? How does this work on shopping sites with carts ? These often also need to check first if the product is available and prevent two users from buying the last product.

Thanks a lot!

0 Answers
Related