Answer the question
In order to leave comments, you need to log in
How to handle multiple requests in parallel on the server?
I don't understand how to handle user requests in parallel. Suppose a get request is made, some heavy function is called on the server, until this function is completed, the request of another user will not be processed, and will be processed only after the processing of the request of the first user is completed. How to avoid it? How to process user requests in parallel?
Answer the question
In order to leave comments, you need to log in
the tornado web server itself should deal with this - asynchronous request processing is called.
here is even an example on the official website www.tornadoweb.org/en/stable/gen.html
... process user requests in parallel ... some heavy function is called until this function completes, the request of another user is not processed, and will be processed only after processing the request of the first user. How to avoid it? ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question