9
NGPixel
3y

Overheard PHP developer say: "I don't like Node.js, it should be more like PHP where everything is async."

Comments
  • 1
    To be fair, you can do quite a bit of async stuff... Guzzle library quickly teaches you how to work with promises etc in PHP. But it kind of feels like driving a rusty dunebuggy over a glass floor.
  • 0
    @bittersweet this has piqued my interest. Had a quick look at the docs. I'm a little bit unclear as to why async would help.
    If each request is handled by apache and thread are created, what would be the life cycle of a request and how does async help?
  • 0
    @rusty-hacker in PHP none. You'll just run out of threads at some point. Unlike node.js which is a single event loop. Async becomes extremely important in this case.
Add Comment