Answer the question
In order to leave comments, you need to log in
What are the implementation options for Comet (Long Polling)?
I am considering options for implementing Long Polling, I was considering installing the https://github.com/wandenberg/nginx-push-stream-module module for nginx, but a lot of problems arose, after which I abandoned this idea, in short I can only say that it was not possible to compile the .deb package, there were errors regarding this module, foolishly used make, later littered the system, cleaned it for a long time after that, and I don’t advise you to do this, but now it’s not about that, all dependent packages were also downloaded, but my dances did not give any result, with regards to make install, nginx itself and dependent packages were installed, but the module voiced above is not ... Therefore, this module flies ...
What other options might there be? Target? To begin with, there is only one goal, in the fast messaging system I need to implement a typing notification, mysql cannot be interfered with in any case, so I'm looking for solutions through a persistent connection ...
Thank you.
PS The machine now has a bunch of nginx + php-fpm
Answer the question
In order to leave comments, you need to log in
For PHP only modules (the comment above is a good example). Native long polling causes scripts to hang due to sessions (which you obviously need).
I don't have much experience in this matter, but maybe try using WebSockets?
Each LongPooling is individual. If you have money, you can write it for you and for your tasks.
I recommend using Erlang.
It depends on what tasks you have, but it may well make sense for you to use the comet service offered by the Saas model. It's quick and easy, and if the load is not large, you can also find it for free.
Here are some comet services.
pusher.com/pricing
comet-server.ru/menu_id/10
www.gamooga.com/pricing
https://www.tambur.io/pricing
https://www.hydna.com/plans-and-pricing/
comet- vortex.com/index.php/comet/tarify
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question