3 ms·
> If you want good performance, then, for non-trivial sites, you cannot afford to spawn the interpeter on each request, so you have to use some asynchronous too
by vbernat 8y ago
> If you want good performance, then, for non-trivial sites, you cannot afford to spawn the interpeter on each request, so you have to use some asynchronous tooling.
Which Python framework is spawning one interpreter on each request? Most frameworks rely on WSGI where requests are served from a fixed number of interpreters. This approach achieves some honest performance. See for example https://klen.github.io/py-frameworks-bench/ https://klen.github.io/py-frameworks-bench/.
> At work, we used fabric for this, and it blew up in our face at scale, and we had to rewrite.
What is fabric? In Python, this is an automation tool for SSH. Unlikely to solve the problem of serving web requests.
- cup-of-tea 8y agoThat "framework" would be CGI. You have to call a program to get its standard output.