Using WebSockets for my project, in the end was an extensive project with thousands of lines of code in PHP.
As soon as I finished typing everything and "finished" they told me that running WebSockets with PHP is unfeasible for large-scale users because it is synchronous and executes everything again for each request.
I was recommended node.js as an alternative due to the low overhead and be asynchronous.
But at the same time I think that if the execution architecture inside the server is adequate trying to the maximum do not have many expenses the use of one language or another for the same purpose ends up getting them for them.
My inquiries are specifically:
-
Is there any proportion to node.js and PHP that demonstrates the how many% would it be more efficient, or something like that?
-
Is there an alternative so I do not have to quit PHP? Even if I change the structures of my project
My situation is frustrating, and as today's projects can fill up with users or not, I do not know where to run.