Re:Python Asyncio: The Complete Guide
by rogers12 on Thursday November 10, 2022 @04:20PM
(#33553541)
That's a blast from the past. Incredible that 10 years ago people thought using a thread per request is a good idea because anything else is too hard.
[ Parent
| on HN ]
Re:Python Asyncio: The Complete Guide
by icedchai on Thursday November 10, 2022 @06:50PM
(#33555382)
I'd argue that thread-per-request is even a better idea now, given the massive number of cores and memory in modern servers.
Hybrid?
Request passed to a thread pool. Each thread is juggling coroutines representing in flight requests
Is that worth the complexity? I like the way Go does it. The runtime is managing the actual threading and async IO as it schedules go routines, but to the programmer it all looks like normal synchronous code.
Re:Python Asyncio: The Complete Guide
by throwaway81523 on Thursday November 10, 2022 @09:32PM
(#33556663)
BEAM has user level processes and can run millions of them in a not too huge VM.