Warn user when new data is inserted on database

Posted by João Menighin on Stack Overflow See other posts from Stack Overflow or by João Menighin
Published on 2012-12-02T10:39:36Z Indexed on 2012/12/02 11:04 UTC
Read the original article Hit count: 172

Filed under:
|
|

I don't know how to search about this so I'm kinda lost (the two topics I saw here were closed).

I have a news website and I want to warn the user when a new data is inserted on the database. I want to do that like here on StackOverflow where we are warned without reloading the page or like in facebook where you are warned about new messages/notifications without reloading.

Which is the best way to do that? Is it some kind of listener with a timeout that is constantly checking the database? It doesn't sounds efficient...

Thanks in advance.

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript