Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Polite frequency of AJAX requests?

I'm writing a script that makes an AJAX request at regular intervals. The request loads a remote page and pulls some numbers from it. The page is public, so the script does the equivalent of refreshing the page every few minutes.

It's possible (although unlikely) that this script will be used by hundreds (maybe thousands) of users if I release it.

Is there a rule of thumb or generally accepted polite frequency of requests that I should adhere to?

like image 495
tamewhale Avatar asked Jul 05 '10 22:07

tamewhale


1 Answers

For an RRS reader, a minute is good as refresh interval. For a chat (with very few users), I used 5 seconds. It depends the use of your script.

like image 114
user283769 Avatar answered Nov 02 '22 15:11

user283769