16 ms·
Side point: Why are they still using polling in this day+age :/
by axod 18y ago
Side point: Why are they still using polling in this day+age :/
- imbriaco 18y agoThe poller works great. Polling definitely not optimal, but Comet isn't without issues of its own. The Erlang poller was a fun project that Jamis and I worked on in our spare time. Transitioning Campfire to use Comet or some other push-based room updating is a much larger undertaking.
- axod 18y ago>> "but Comet isn't without issues of its own." Very high traffic sites manage it without issues. Comet actually massively decreases the load on servers, bandwidth used, and means people get messages as soon as they should - without a delay.
- dabeeeenster 18y agoWhat would your solution be?
- axod 18y agoOh I don't know, maybe use keep alive long polling or something? Maybe with self adjusting timeout. Seriously. Polling the server every 3 seconds???
- aaronblohowiak 18y agoEven with keep alive long polling, you have to reconnect frequently. With alive long polling, you also have the trouble of managing open, persistent connections.
- axod 18y ago"keep alive" eg. Not reconnecting.
- bittersweet 18y agoXMPP, Jabber, AMQP, Rabbitmq are a few keywords that are getting a lot of hype lately.
- skorgu 18y agoDon't forget BOSH.
- aaronblohowiak 18y agoBOSH is a technique to enable the techniques that this posts' gp mentioned over http
- ovi256 18y agoIf I understand well, the client browser polls the server, via JS timers. There is no practical, scalable way for the server to update the client browser, so the client has to poll this way. Their code just answers these polls. Of course, performance wise, this sucks badly, because most of the time polling returns no results.
- axod 18y ago>> "There is no practical, scalable way for the server to update the client browser, so the client has to poll this way." If you say so :/
- lbrandy 18y agohttp://en.wikipedia.org/wiki/Comet_(programming) http://en.wikipedia.org/wiki/Comet_(programming)
- simonw 18y agoThere are a number of practical, scalable (albeit tricky to set up) ways of pushing events from the server to the browser, gathered under the umbrella term Comet. Google have been using Comet for chat within Gmail since around 2005.
- a-priori 18y agoFacebook also uses it, with an Erlang backend, for Facebook Chat.