3 ms·
Yes. That's why nearly every web framework is threaded by default. That includes everything you'll find in Ruby, Python, Go, or ASP. Not serializing IO, but th
by marcosdumay 11y ago
Yes. That's why nearly every web framework is threaded by default. That includes everything you'll find in Ruby, Python, Go, or ASP.
Not serializing IO, but them stopping every worker just because one of them has some hard work to do is not a sane working model for web backends.
- EGreg 11y agoThat's why you spawn worker processes and servers. Evented IO is way faster than threads as NGinX and Node have shown.
- jrochkind1 11y agoIt's pretty new that Rails is arguably 'threaded by default', and many/most typical deploy setups for Rails still don't run with multi-threaded request dispatch. But yes, I agree with you that that is why every web app _should_ be threaded.