Re:Rails 4 will establish a new background job queueing API
by mibbitier on Friday April 27, 2012 @11:03AM
(#3899355)
DB table "pending_emails" with a time field...
cronjob removes them based on time entered, and sends them.
shrug
Where a queue is really useful is converting from foreground to background, so that you can optimize for throughput, rather than having to leave free capacity for 'random arrivals' of your foreground servers. Think of it as the same as the same problem as the bursty traffic that a bank machine gets, and why you always seem to have to line up.
The mathematical term is Poisson distribution: http://en.wikipedia.org/wiki/Poisson_distribution