php - Multiple spools with Swiftmailer and Symfony2 -


what best approach sending highest email rate possible swiftmailer?

we own email automation tool , there single sendouts of 40.000 emails. our average rate spool:send command of ~50 emails/min. i've tried copying same command on cron 5 times , worked (i.e. sending ~250 emails/min), looks smtp server got dizzy, because contacts receiving emails contact's information (any idea on causing that?).

so thinking setting 5 different mailers spools emails on different folders , running 5 commands cron, each 1 one of mailers. should work? other recommended solution?

if you're sending 250 emails per minute, need more resilient cron , swiftmailer spool. hard scale, nightmare debug, , not inflexible. swiftmailer spool great if you're sending no more couple of emails minute, bigger , it's hard scale , nightmare debug.

instead, use job queue php resque or rabbit mq (both open source). can replicate 'spool' having queue of emails need sent, , can add multiple workers , queues. have second queue adds jobs first queue.

the advantage rabbit mq comes manager interface, can see things how many emails being sent, how many failing, etc. also, it's easier scale , down adding , removing workers when you're under heavy load, example.

kacper sensio labs gave talk on rabbit mq symfony last year - http://www.slideshare.net/cakper/2014-0821-symfony-uk-meetup-scaling-symfony2-apps-with-rabbit-mq.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -