Doubt: Web Sockets and how to use

2

I was seeing this question link

So I did not read the answer on nodeJS and I researched, but I did not understand much. How to apply this technology (nodeJS)?
I am developing a site in php / jquery and in it I have administrative panel with a menu that contains a badge , so I created an ajax function that runs every 3 seconds and if there is change in the database it notifies me in this badge . I read that it overloads the server.

Here's the question:

How to make this notification the most correct? If possible, some explanatory example where changing the database or identifying the user action on the site, update this my notification ( badge ) in the admin panel.

    
asked by anonymous 07.04.2017 / 06:07

0 answers