News for hackers. Stuff that matters.
Re:Faster CPython (2021) [pdf] by _hl_ on Monday January 24, 2022 @02:46AM (#30054635)
It's fairly standard practice to hack in some "green thread" behaviour using gevent or similar. It's far from perfect but gets you away from the single-process-per-request bottleneck. If it even is much of a bottleneck in the first place - isolating each request in its own process worked well enough back in the CGI days. I suspect the real reason is that autoscaling doesn't generally play well with having thousands of mostly idle processes.

There are no comments on this comment yet.