I am having a PHP(Laravel Framework) application and a nodejs application. The nodejs application is used for sending push notification to user browser in conjunction with socket.io .Since PHP is not a better solution for long polling process I had to include node.js application in to my stack. I am using nodejs only for a single functionality (to show some real time data to a user who comes to my page ).
I can expect a concurrent connection of 1000 , so I avoided using PHP for ajax long polling and used nodejs for handling long polling along with socket.io
Now I am confused whether deploying my PHP application and nodejs application will cause any issues? My PHP application will be communicating with nodejs app through internal APIs.
Is it fine to deploy nodejs on a LAMP stack in terms of performance? Does the traffic hits (long polling) process on nodejs affects my server and there by affects my PHP application?