My question might be quite basic.
I have a Spring MVC (Spring Boot) REST api, and multiple Spark workers that send parallel HTTP GET requests to this REST api (e.g. 4 workers on different nodes -> 4 parallel HTTP requests). I want my REST api be able to process these requests in parallel.
How can I do it? Should I use callbacks and DeferredResult inside my REST api? Any example would be really helpful.