I am trying to create a page on my website that shows new uploaded items in real time.
I thought that the best way to approach this would be to call Ajax Script every 3 seconds , however, a new uploaded item often does not appear on my site. It is so variable, somewhere between 30 seconds and 1 hour!
Also, calling Script every 3 seconds will be pretty tolling on my server, especially if many people are on the same page.
I was looking for something like push notifications for PHP. Although this seems far-fetched, Iโm looking for something that when someone uploads something to the site, the Script download reports an updated feed page.
I saw something called COMET. Although reading articles / textbooks confused me even more.
So what is the best way to implement a constantly updated page?
source share