When I test my new Flask application with a built-in web server, everything is "single-threaded" and blocking. The server cannot serve one request without ending with another. It can only process one request at a time.
When deploying a web service, this is clearly undesirable. How do you deploy Flask applications so things can move in parallel?
Are there any different things to consider regarding thread safety and concurrency inside the code (protect objects with locks, etc.) or are all the sentences equivalent?
source share