I have created two API endpoints using Spring Boot.
Ist endpoint: Does some get operation.
IInd endpoint:Overwrites a Mongo DB Collection.
My aim is to prevent concurrent access for multiple users for this second endpoint. And I don't want to block concurrent access to first endpoint.
Both my endpoints are under same controller.