Randall
05-10-2007, 02:18 PM
Yesterday I had my first run-in with the SRC. I'm working on an experimental AJAX script that calls two files on the server every 15 seconds (I could probably afford to stretch that out a bit), but last night something went berserk. The logs show dozens of requests over the course of just one minute -- I killed it at that point, or I'm sure it would have gone on indefinitely.
Not sure if it was the client-side script screwing up, or if the AJAX requests were being retried immediately after getting the SRC error message, or what.
Anyway, some questions:
Can activity happening on multiple IRMs trigger the SRC? The sites on that package generally don't get hit very hard.
Would multiple people requesting the same page (once each) in a short span of time trigger it, or does SRC look at individual IPs?
Finally, about the script I'm working on. If I staggered the two page requests -- say 3 seconds apart -- would that be less likely to create server problems? And are two simultaneous page requests really enough to trigger the SRC? I'm wondering if there might be something else involved.
As I work on this I'll probably get smarter and cache the second request (data) if the first one (status) reports no change, meaning fewer double-hits...
Does the SRC return a unique HTTP status code? If I knew to look for it, maybe my script could handle the situation more gracefully (certainly couldn't get any worse).
It goes without saying that this AJAX stuff is all new to me, and I know just enough to be dangerous. :EG:
Randall
Not sure if it was the client-side script screwing up, or if the AJAX requests were being retried immediately after getting the SRC error message, or what.
Anyway, some questions:
Can activity happening on multiple IRMs trigger the SRC? The sites on that package generally don't get hit very hard.
Would multiple people requesting the same page (once each) in a short span of time trigger it, or does SRC look at individual IPs?
Finally, about the script I'm working on. If I staggered the two page requests -- say 3 seconds apart -- would that be less likely to create server problems? And are two simultaneous page requests really enough to trigger the SRC? I'm wondering if there might be something else involved.
As I work on this I'll probably get smarter and cache the second request (data) if the first one (status) reports no change, meaning fewer double-hits...
Does the SRC return a unique HTTP status code? If I knew to look for it, maybe my script could handle the situation more gracefully (certainly couldn't get any worse).
It goes without saying that this AJAX stuff is all new to me, and I know just enough to be dangerous. :EG:
Randall