The Python Oracle

What is the proper way to thread tornado+flask app?

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT


Music by Eric Matyas
https://www.soundimage.org
Track title: Industries in Orbit Looping

--

Chapters
00:00 What Is The Proper Way To Thread Tornado+Flask App?
00:36 Accepted Answer Score 0
00:59 Thank you

--

Full question
https://stackoverflow.com/questions/6267...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #web #flask #tornado

#avk47



ACCEPTED ANSWER

Score 0


Tornado's WSGIContainer does not support threads, which means that it is also not suitable for most production usage (the rest of Tornado is, just not WSGIContainer). It's only a good idea to use Tornado's WSGIContainer when it's important to serve both Tornado RequestHandlers and WSGI applications in the same process. Otherwise, I recommend gunicorn or uwsgi.