What is the correct refresh rate for AJAX chat?

What is the correct refresh rate for a quality balance and not a server crash?

+3
source share
2 answers

Do not try new messages (any update speed will become unavailable when scaling), just make the server push new messages to the AJAX client.

Take a look at Comet (long HTTP request)

+8
source

It depends on a wide range of factors, for example. response time, server size, expected capacity, bandwidth. I would say that every 500 ms, upon completion of the request, they will feel comfortable.

, - .

, , , .

+1

Source: https://habr.com/ru/post/1737901/


All Articles