Answer by Ronenz for How does facebook, gmail send the real time notification?
One important issue with long polling is error handling. There are two types of errors: The request might timeout in which case the client should reestablish the connection immediately. This is a...
View ArticleAnswer by ideawu for How does facebook, gmail send the real time notification?
According to a slideshow about Facebook's Messaging system, Facebook uses the comet technology to "push" message to web browsers. Facebook's comet server is built on the open sourced Erlang web server...
View ArticleAnswer by abhinav for How does facebook, gmail send the real time notification?
Facebook uses MQTT instead of HTTP. Push is better than polling. Through HTTP we need to poll the server continuously but via MQTT server pushes the message to clients. Comparision between MQTT and...
View ArticleAnswer by Walter Macambira for How does facebook, gmail send the real time...
Update As I continue to recieve upvotes on this, I think it is reasonable to remember that this answer is 4 years old. Web has grown in a really fast pace, so please be mindful about this answer. I had...
View ArticleAnswer by Kazar for How does facebook, gmail send the real time notification?
The way Facebook does this is pretty interesting. A common method of doing such notifications is to poll a script on the server (using AJAX) on a given interval (perhaps every few seconds), to check if...
View ArticleHow does facebook, gmail send the real time notification?
I have read some posts about this topic and the answers are comet, reverse ajax, http streaming, server push, etc. How does incoming mail notification on Gmail works? How is GMail Chat able to make...
View Article