I am very new to Springboot. I have created the following rest API. If this API receives multiple requests at the same time, i want it to handle one by one without loosing any requests. I want this service call to be made with delay of 20 seconds if multiple requests are made.
@RequestMapping({"/create"})
public Response processCreation(@RequestBody(required=false) RequestDTO requestDTO) throws Exception {
Response response = new Response();
response=interceptorService.interceptData(requestDTO);
return response;
}