in reply to Re: How to emulate queue for CGI script?
in thread How to emulate queue for CGI script?

There is a problem with trying to do the rate-limiting in the browser: if there is more than one client, you'll blow the limit. I think it has to be done in the back-end.

You ought to be able to get the effect you want by using CPAN modules. You may be able to simply use HTTP::Cache::Transparent.

  • Comment on Re^2: How to emulate queue for CGI script?

Replies are listed 'Best First'.
Re^3: How to emulate queue for CGI script?
by Limbic~Region (Chancellor) on Mar 21, 2011 at 17:18 UTC
    thargas,
    Perhaps you missed where the CGI checks how long it has been since a request was made? That will be for all clients. The trouble I see with it is a race condition where two clients check at the same time and both think it is ok. One actually gets delivered and the other gets queued with no notice to the user. I am sure that since we are doing whiz bang AJAX that we could tell the user the approximate wait time even after they are in the queue though.

    Cheers - L~R