I want to mess around with realtime information, and there is a pretty standard functionality that I want to duplicate:
It occurs here on SO when you're on a single-question view, typing your answer, and an alert pops up top saying "there are 3 news answers, click to show"
It also occurs on Twitter "There are 5 new tweets in this search: click to update"
I'm pretty versed in server and client side code, and what I'm looking for is the basic outline (not even psuedo code, but perhaps plain english) of how something like this happens.
Is there a CRON job on the server running every minute, that shoots a signal to a long-polled AJAX bit on the page?
Does the page itself poll a server?
Any and all solutions are welcome. Thanks!