I have ‘Maximum send rate’ quota on Amazon-SES service, which means the maximum number of emails that I can send per second.
What is the best way to organize my mailing in Ruby on Rails considering this quota?
I have ‘Maximum send rate’ quota on Amazon-SES service, which means the maximum number
Share
Well, queue them and schedule a batch process to consume from this queue and send them in a timely way, considering the quota. I haven’t worked with queues in RoR but I believe there are some solutions out there. Worst case scenario, queue them on the database.
One point you should consider is the batch is not fast enough to fullfil all the mailing requestes he receives. You might them notify the admin, drop or persist the mailing for further attempt. If notified you can buy more throughput from Amazon or something like that.