Paketname | libschedule-ratelimiter-perl |
Beschreibung | Perl library to prevent events from happening too quickly |
Archiv/Repository | Offizielles Debian Archiv squeeze (main) |
Version | 0.01-1 |
Sektion | perl |
Priorität | optional |
Installierte Größe | 68 Byte |
Hängt ab von | perl (>= 5.6.0-16) |
Empfohlene Pakete | |
Paketbetreuer | Debian Perl Group |
Quelle | |
Paketgröße | 10144 Byte |
Prüfsumme MD5 | ea68afa7b8297a4af2f452a640433fc1 |
Prüfsumme SHA1 | 95ef5556d576053909a83bac95e0077b47d5e846 |
Prüfsumme SHA256 | d477c90d0d87c23fcdde953cbfcb69906e7c1b1ab9e8a6e4e020e6ed993aab2c |
Link zum Herunterladen | libschedule-ratelimiter-perl_0.01-1_all.deb |
Ausführliche Beschreibung | 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 )
|