Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: mails per second #10

Open
anu-vaid opened this issue Aug 26, 2012 · 1 comment
Open

Question: mails per second #10

anu-vaid opened this issue Aug 26, 2012 · 1 comment

Comments

@anu-vaid
Copy link

This is a question rather than an issue.

Amazon SES imposes a limit on the number of emails that can be sent per second. Can we impose the restriction using mail hopper queueing?

@dgeb
Copy link
Member

dgeb commented Aug 26, 2012

You probably want to queue jobs synchronously to avoid delays in your app, and focus instead on controlling the rate at which they're pulled out of the queue and sent. If you're using delayed_job for your queue (along with delayed_mailhopper), you may want to look into setting the run_at param when jobs are enqueued. You could override the enqueue method in `DelayedMailhopper::Email`` to set this param based on a global counter accessible to all your app instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants