How to implement Realtime push notification for my website?

I have a website which has two parts. The first part is used by X people and the second by Y people. The X people asks for help and the Y people instantly receiving the SOS resonds with an ETA of their arrival. I am using PHP-MySQL implementing the database and logging all the interactions of X and Y people. I know I can use Ajax for this purpose. Then Again I am not a big fan of Polling through setInterval method.

Which is the best approach to push messages and show notificaions from one page to another?


You have several ways to do that, here are some:

Need Your Help

Failing to update a row in mySQL database using Java no error message

java mysql swing jdbc

I imported JDBC driver successfully into netbeans and tested the mySQL fine but after executing the query, the table is not updated in mySQL. I'm using a GUI to update these valu...