Filewatcher File Search File Search
Catalog
Content Search
» » » » »

libschedule-ratelimiter-perl

Perl library to prevent events from happening too quickly

Schedule::RateLimiter provides a way to voluntarily restrict how many times a given action may take place within a specified time frame. Such a tool may be useful if you have written something which periodically polls some public resource and want to ensure that you do not overburden that resource with too many requests.

Initially, one might think that solving this problem would be as simple as sleeping for the number of seconds divided by the number of iterations in between each event. However, that would only be correct if the event took no time at all.

If you know exactly how much time each event is going to take then you could build an even more complicated one-liner such as this:

sleep( (seconds / iterations) - single_event_time )

Homepage:
Package version:0.01-1
Architecture:all
Distribution:Debian
Filename:libschedule-ratelimiter-perl_0.01-1_all.deb

/usr/share/doc/libschedule-ratelimiter-perl/README

Schedule::RateLimiter version 0.01
==========================

This module provides a way to voluntarily restrict how many times a given
action may take place within a specified time frame.  Such a tool may be useful
if you have written something which periodically polls some public resource and
want to ensure that you do not overburden that resource with too many requests.

  # Don't let this eve
more»

/usr/share/man/man3/Schedule::RateLimiter.3pm.gz

RateLimiter(3pm) User Contributed Perl DocumentationRateLimiter(3pm)



NAME
       Schedule::RateLimiter - prevent events from happening too
       quickly.

SYNOPSIS
         use Schedule::RateLimiter;

         # Don't let this event happen more than 5 times in a 60 second period.
         my $throttle = Schedule::RateLimiter->new ( iterations => 5,
                                             
more»

/usr/share/doc/libschedule-ratelimiter-perl/changelog.Debian.gz

libschedule-ratelimiter-perl (0.01-1) unstable; urgency=low

  * Initial Release. (Closes: #518443)

 -- Ryan Niebur <ryanryan52@gmail.com>  Thu, 05 Mar 2009 23:00:58 -0800

/usr/share/doc/libschedule-ratelimiter-perl/changelog.gz

Revision history for Perl extension Schedule::RateLimiter.

0.01  Wed Dec  3 22:11:53 2003
	- origin
more»

/usr/share/doc/libschedule-ratelimiter-perl/copyright

Format-Specification:
    http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
Ups
more»

Browse inside libschedule-ratelimiter-perl_0.01-1_all.deb

         [DIR]DEBIAN/ (2)  65535+ mirrors
         [DIR]usr/ (1)  65535+ mirrors

Download libschedule-ratelimiter-perl_0.01-1_all.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016 FileWatcher.com