Hello. I thought about the problem with the load on the server. I think we need to make a limit on the frequency of requests, in particular with ajax. Limit the user to 15 seconds if the frequency of one call is less than 5 seconds. I can not imagine what methods options may be. I thought that you can take the last record from the database and look at the time of addition, but this is not a functional method, and besides, it is not profitable, since the query to the database in any case needs to be done.
What are the options for solving this problem? Thank.