Sujet : Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.pythonDate : 28. Aug 2024, 08:54:26
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vamhj2$3cplg$5@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Pan/0.160 (Toresk; )
On Tue, 27 Aug 2024 23:01:33 -0700, Paul Rubin wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
With Python ASGI, you control what happens. A single process can handle
multiple connections, if you so choose.
Oh, I see what you mean. Yes you can write an ASGI server without
multitasking, similar to node.js. Ugh.
Why “Ugh”? It avoids the overheads of multiple processes (where these are
unnecessary), and the pitfalls of multiple threads.