3 ms·
> There isn’t a web framework that I’m aware of which magically makes all sync requests async. Waitress gets part of the way there. IIUC Request/response is do
by jashmatthews 8y ago
> There isn’t a web framework that I’m aware of which magically makes all sync requests async.
Waitress gets part of the way there. IIUC Request/response is done via asyncio but the actual web app part uses a thread so you can't accidentally block the whole thing.
- weberc2 8y agoInteresting. I wonder how it manages the threading with the GIL and all that.
- jashmatthews 8y agoThread per request works because the GIL is released during blocking IO. You only need one process per core and each process runs multiple threads. It saves a massive amount of RAM compared to trying to cram 50 (g)unicorns onto a server.