TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Technology behind Push Notification

2 pointsby kusum18almost 13 years ago
Hi Guys,<p>I hope this is not a repeated post. I would like to know the exact idea/technology behind developing a push server.<p>The exact query i have is technology wise whats the exact implementation difference between push server and polling client ?

4 comments

aleprokalmost 13 years ago
Push server requires constant connection with the client and the server pushes new information to clients without requiring the client to first ask for updates. Polling requires the client to ask for updates, but does not require constant connection. The connection with polling server is required only while the poll is happening.<p>Push server basically does not require much at all download bandwith, when polling requires bandwith for each update request. But push server requires open connection per active client, which might be in the millions at the same time. Pull server does not need active connections to be open all the time. Only when a request happens. For example web servers use pull method to service more clients with less cpu and memory usage because the connections are actually only open when http request/reply happens. Games and chats use push method to move information to the server and to push information given by another client to other clients. But for the server to push data to clients the server at least needs to have the ip address of the client with udp or open socket with tcp.
keylealmost 13 years ago
The best is to have a read of Wikipedia's article.<p><a href="http://en.wikipedia.org/wiki/Push_technology" rel="nofollow">http://en.wikipedia.org/wiki/Push_technology</a><p>Basically clients subscribe to channels they want to be kept up to date with and they get notified of changes.<p>They're being "pushed" information.<p>Behind the myriad of complex implementations, it's very simple.<p>Have a service allowing subscriptions and removals, a channel system (handling multiple lists of clients) - although not necessarily - and the server a method to push the info out to the clients.<p>From there it's all about getting smarter about data... Throttling data, chunking client lists, periodically testing if clients are still alive, etc. But overall, simple.
dousalmost 13 years ago
"push" requires that an open connection be maintained, while "poll" means you connect multiple times.
评论 #4359238 未加载
评论 #4359209 未加载
评论 #4359199 未加载
评论 #4359192 未加载
kusum18almost 13 years ago
Thanks a lot everyone.
评论 #4359232 未加载
评论 #4359210 未加载
评论 #4359200 未加载
评论 #4359187 未加载