I'm very newbie about the topic,
I ask if the probelm here is feaseable with beanstalk

My problem:
I have to send messages "burst" to a remote server (Telegram.org Bot API 
server) that accept max 30 messages/sec

max_messages = 30 # /sec
max_rate = 1000/30 # almost 40 millisec

Otherwise remote server reject further incoming message considering the 
font as 'spammer'.
So the maximum rate is almost 34 milliseconds (let say 40 msec to be sure).
BTW, this is an anti-spam limitation I understand. 

Anyway, the point is:
I have to send messages with a rate of maximum rate of  X milliseconds
(one message every no less than X=40 msec milliseconds)

But I would send messages more quickly in case of a number of messages in 
queue < 30

Question:
there is a way to set this dynamic "emittion-rate" on a beanstalk "tube" ?

BTW, the problem is related to my open source very draft project (in Ruby 
language):
www.github.com/solyaris/BOTServer

Thanks and sorry for my ignorance
giorgio


-- 
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/beanstalk-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to