How facebook notification will work internally ?
Really it's nice to see that one of your friend comment on your post and automatically a red color notification will displayed on the header.
.
After concentrating on some point i found that may be they use database event like "trigger" to fire the query but how that event will affect automatically on the view part of our application.
may be they use ajax to refresh that portion of page but how that database event can be use to affect the view part.
.
Do anyone have idea how trigger is used to affect the view part automatically ?