What technology is Google using (and many other people, eg Apple's iCloud webmail client) to automatically update the UI when a new email is received?
EDIT : I should say that I am asking this from the perspective of building an extremely high concurrency app, so it will need to scale well. Think online IM client/chatroom.
It's called HTTP Server Push . Instead of continuously polling the server to check for new mail, the server HTTP server pushes the data to the web browser. HTTP server push can be achieved through several mechanisms, including long ajax polling, Comet and Web Sockets.
他们使用AJAX或Comet或WebSockets 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.