I am not able to understand how Async works.I know that webserver has its own thread pool to handle multiple requests. When we implement asynchronous web service with spring boot and configure let's say "n" threads using TaskExecutor, does that mean n threads created for each thread coming as request?
To clarify, the server will assign a request to a thread from its ThreadPool. So when this thread starts execution and calls a function marked with @Asynch, it can create another "n" threads for each incoming thread to handle async work. Please let me know if my understanding is correct.
If What I understand is correct then how to decide what amount of pool size should be created? Can someone please give some example.