4 ms·
In PHP and other scripted web server languages? Please show me how it's done. PHP does preforking first of all. You have about 30 "threads" sitting around, abl
by EGreg 13y ago
In PHP and other scripted web server languages? Please show me how it's done.
PHP does preforking first of all. You have about 30 "threads" sitting around, able to handle 30 clients. This is STILL not the same as evented programming, which lets you send out these requests and wait.
Speaking of -- have you ever heard of evented i/o?
Let me put it this way ... threads and workers are good for handling incoming requests (one worker per request). But for outgoing requests, it's nice to have evented i/o!
- bascule 13y agohttp://celluloid.io/ http://celluloid.io/ https://github.com/jruby/jruby/wiki/Concurrency-in-jruby https://github.com/jruby/jruby/wiki/Concurrency-in-jruby > Speaking of -- have you ever heard of evented i/o? Yes, I wrote a Ruby wrapper to libev before Ry wrote Node, and this coroutine abstraction to get rid of the async gunk, but Ry left that part out: http://revactor.github.io/philosophy/ http://revactor.github.io/philosophy/