Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Chandra

Queue sending order emails to speed order confirmation?

Recommended Posts

Why not separate out email sending process to some kind of queue mechanism so it is not on the critical path for order confirmation?

 

Having this feature allows using SMTP authenticated email that is delivered more reliably, and does not delay order confirmation by many seconds either.

Share this post


Link to post
Share on other sites

This is definitely a good idea. The implementation is tricky, though. The best way would be to have dedicated task queue running in separate process. But that would require your own server, and it would not be trivial to configure. Alternative is cron-based task queue. There are always some problems with crons, timeouts, etc.

But it's definitely a good thing to think about. Especially if we combine this with task scheduler to run maintenance tasks

Share this post


Link to post
Share on other sites

Thanks @datakick

Mautic and Phplist have a queuing mechanism that I thought should work well for the tb scenario.

I see mautic creates emails and dumps them in a folder within the mautic installation. A cron runs periodically to pick and send out a configurable number of those emails through any standard mail server. We have cron functionality in tb for a variety of tasks anyway.

Thinking about it, even Amazon does not send order emails immediately these days.

Edited by Chandra

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×