I am developing a system and soon I will have to start the part of interactions in real time (for notifications and chat). I am using jQuery
, PHP
and MySQL
so far and I intend to continue with these technologies.
I have already seen about long-polling
but I read that it is not a good practice, since, several requests would be made to the server and depending on the number of accesses it could overload. I also read about WebSockets
but I still can not figure out how to use it, and I would also like to know your browser support. Researching, I found Ratchet , but what would it be? A "framework" to assist in the use of WebSockets
? Another option that I came to know is the famous Node.js
, but how could I use it separately for the notifications / chat part only? If yes, how would this "integration / blending" between PHP
and Node.js
?
However, even without having any experience with such subjects ( WebSockets
/ Node.js
) I would like to use WebSockets
so I do not have to involve Node.js
and continue using current project technologies. >