Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Applying the brakes

by jethro (Monsignor)
on May 08, 2008 at 12:15 UTC ( [id://685450]=note: print w/replies, xml ) Need Help??


in reply to Applying the brakes

On your update question:
If all you want is to limit mails/second and you know how many hosts are doing the sending, you might as well throttle each host to 1/hosts of the rate one host would be sending.
So 2 hosts would be sending at 1/2 of the rate one host sends. No communication necessary for that

if you really really want communication, then the database all the hosts are already accessing gives a convenient means to coordinate.
For example it could give out contingents of email adresses to each host that are put in by one coordinator process at the specified rate.

Perl threads could be used similary, one coordinator thread and many sub-threads. Counter question: Safe from what?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://685450]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-25 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found