Answer the question
In order to leave comments, you need to log in
How to organize a fast and frequent refresh of a page that has >500 elements using JQuery?
Good day to all!
I'm developing a browser-based online game in Php + MySql (Server) and JQuery (Client) and I had this problem:
The player has >500 elements displayed on the page. Each, let's say, is a number from 1 to 1000. They need to be updated (synchronized, with the database) at intervals of about 1-5 seconds.
I will clarify that not all of the 500 elements must be updated. Perhaps some of them may not require updating.
How to implement such a task and not bend the server?
Many thanks in advance for your answers!
Answer the question
In order to leave comments, you need to log in
websockets as a fallback transport to long pooling. Well, I hope you understand that you will have to completely redo the server architecture for this case. We'll have to use things like ReactPHP and Ratchet
> 500 elements is not a little, maybe it's worth optimizing this thing as well?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question