Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
09-17-2011, 04:18 AM #1
- Join Date
- May 2009
- Thanked 67 Times in 67 Posts
Most efficient way to auto-refresh a chatbox?
If you go to a Youtube video by Justin Bieber or Rebecca Black, comments are constantly being posted and it seems like the autorefresh for the comments kicks in every half second. I don't plan on having millions of users viewing my page, but still, wouldn't having every user make a [mysql] request to the server every half second really take a toll on the server (especially since I don't plan to ever have the resources that Youtube has)? Facebook also seems to have instantaneous auto-refreshes, be it in comment boxes or their chat interface.
So what would be the best method to implement a near-instantaneous autorefresh system with minimal resource usage?