Answer the question
In order to leave comments, you need to log in
How to handle http requests to a specific URL in a separate thread pool?
Hello. The controller has two methods with different URLs. It is necessary that requests to these URLs be processed in different pools of threads. The main thing is that if requests for the first URL are queued and do not go further (for example, all threads are busy in the thread pool), then this does not affect requests for the second URL. How to do it with Spring?
PS So far, I have not found at all how streams work in Spring in terms of processing http requests (so I will also be grateful for any information on this matter and useful links)
PSS These methods are methods for checking the liveness and readiness of an application (microservice) ( concepts are taken from Kubernetes, samples will connect to these methods)
PSSS Application on Spring Boot, built-in application server did not change
Answer the question
In order to leave comments, you need to log in
I would split the application into two microservices. This way you can achieve such isolation.
The second idea (if for some reason microservices do not suit you) is to look towards Spring Reactive.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question