Answer the question
In order to leave comments, you need to log in
What Comet technology to use?
Hello!
I decided to write a small service, but there was a need to update the information on the client at the initiative of the server.
The layout is something like this: 100 uniques - users who would need to deliver information immediately after the change in the database, but they will lose little from a delay of 5 minutes; a few (maximum 20) administrators who need to deliver information as soon as possible to increase responsiveness, which is very important for the service paradigm.
Of course, until the project becomes popular, the loads described above are unlikely to occur, but we need to think about the future now.
Therefore, I'm wondering what to do: requests every 5 minutes for users + long pulling for administrators, or use websocket technology. The development is in php, so I think to use ratchet, but you can also tinker and set up node.js + socket.io together with php. However, the problem is that I can not find clear tutorials for either the first or the second.
Actually, a question. Do I need a websocket and if so, please, your opinion (ratchet or socket.io) and links with setup / installation / getting started.
Thank you in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question