Handling an API with a throttle?
Any nice tricks for this? Calling this from a web app, although I don't have to. I'm assuming the right answer is some form queue with a daemon plucking requests off. Any other useful suggestions?
Re: Handling an API with a throttle?
Do you mean something like these? https://metacpan.org/module/App::Cerberus#App::Cerberus::Plugin::Throttle https://metacpan.org/module/Plack::Middleware::Throttle https://metacpan.org/module/IO::Lambda::Throttle Gaz On 13 April 2013 22:32, Dave Hodgkinson da...@hodgkinson.org wrote: Any nice tricks for this? Calling this from a web app, although I don't have to. I'm assuming the right answer is some form queue with a daemon plucking requests off. Any other useful suggestions?
Re: Handling an API with a throttle?
Opposite direction, making calls to an external API... On 13 Apr 2013, at 22:57, Schmoo schmoos...@gmail.com wrote: Do you mean something like these? https://metacpan.org/module/App::Cerberus#App::Cerberus::Plugin::Throttle https://metacpan.org/module/Plack::Middleware::Throttle https://metacpan.org/module/IO::Lambda::Throttle Gaz On 13 April 2013 22:32, Dave Hodgkinson da...@hodgkinson.org wrote: Any nice tricks for this? Calling this from a web app, although I don't have to. I'm assuming the right answer is some form queue with a daemon plucking requests off. Any other useful suggestions?
Re: Handling an API with a throttle?
I found this: https://metacpan.org/module/Schedule::AdaptiveThrottler If you use it, please feedback: i might use it in the future. On 13 April 2013 23:05, DAVID HODGKINSON daveh...@gmail.com wrote: Opposite direction, making calls to an external API... On 13 Apr 2013, at 22:57, Schmoo schmoos...@gmail.com wrote: Do you mean something like these? https://metacpan.org/module/App::Cerberus#App::Cerberus::Plugin::Throttle https://metacpan.org/module/Plack::Middleware::Throttle https://metacpan.org/module/IO::Lambda::Throttle Gaz On 13 April 2013 22:32, Dave Hodgkinson da...@hodgkinson.org wrote: Any nice tricks for this? Calling this from a web app, although I don't have to. I'm assuming the right answer is some form queue with a daemon plucking requests off. Any other useful suggestions?