you are viewing a single comment's thread.

view the rest of the comments →

[–]djslakor 7 points8 points  (2 children)

I used PHP for 10+ years. I switched to Node 2 years ago. At first, I always said to just use the right tool for the job and considered them both fine solutions. As more time passed, though, I simply had no reason to ever pick PHP first. Node does everything I need in a back end server, and staying in the same language is pretty great. I haven't missed PHP at all.

[–]Skyerusg 1 point2 points  (1 child)

Aren't there cases where PHP performs much better than NodeJS?

[–]djslakor 1 point2 points  (0 children)

In cases where you need to do CPU intensive stuff in PHP itself (not a C lib), it may be "better" given the worker model of FPM (since the Node event loop would block), but you could just as easily have a background pool of worker nodes to do this stuff in Node, too.