5
I have a system, in which it displays database files, in list form.
I do the query in the database every 5 seconds to see if there are new files, and if you have it is shown to the user using AJAX.
What’s it for? To avoid updating the page all the time, to see if you have any new files.
Only they advised me not to do this, because if you have 100 users online, every 5 seconds 100 queries are made on the server.
They told me about push technology, and this is where my doubt lies, how to implement this technology?
http://answall.com/questions/19345/howto work com-websockets, http://answall.com/questions/9067/%C3%89-poss%C3%Advel-fazer-comunica%C3%A7%C3%A3o-client-server-real-time-via-http
– bfavaretto
If you have a controlled environment, you can use Node.js + Socket.IO to do this service much more efficiently.
– Kazzkiq
Search for: Websockets and Comet Programming
– old7