Developer forum

Forum » Feature requests » Add throttle to email mailing

Add throttle to email mailing

Scott Forsyth Dynamicweb Employee
Scott Forsyth
Reply

Hello,

When sending large number of emails and rendering unique content, it's not uncommon to overwhelm the server. Worse yet, large mailings usually correspond to important events when it's all the more important to have the site running at top performance.

It would be nice to have some type of throttle to keep the performance at bay. A simple solution would be to have a delay between sends. It may only need to be a few milliseconds. If a 'delay between emails' (in milliseconds) is configurable, then we can experiment with the best settings.

A more eleborate solution would be something with more awareness to the CPU its using and auto scale back as needed, but I don't know how doable that is.

Here's a recent thread about this: http://doc.dynamicweb.com/forum/cms-standard-features/cms-standard-features/mergeanddeliver-failed

Thanks,

Scott


Replies

 
Tomas Gomez
Reply

Hi,

+1
We experience same issue when sending 5000+ mails with unique content

Regards,
Tomas

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Both

We have made a new setting "/Globalsettings/Modules/OMC/EmailMarketing/DelayBetweenMailsInMs", Devops#5139, that will add a delay in the specified number of ms.

You can try if that will work for you. You can set it to i.e. 50 which is 50ms. If you send out 500 emails the total delay will be 50* 500 = 25000ms = 25s.

If you add a delay of 1000 ms and send out 500 emails, the total delay will be 500 * 1000 ms = 500000ms = 500s = 8,3mins.

We do not know if it will have the desired effect, but you can try it out. Attached a 'priate' dll of Dynamicweb.Mailing that supports this new setting.

Try it out and let us know if this has the desired effect.

Thanks, Nicolai

Votes for this answer: 1
 
Scott Forsyth Dynamicweb Employee
Scott Forsyth
Reply

Hi Nicolai,

Excellent. This looks promising. I look forward to trying this out. We'll apply and run it on our next large mailing.

Thanks!

Scott 

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Did this ever make it into the product? And @Scott: did it help with handling the load?

Imar

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

We are also on followup in this as immediate requirement.

 

Thanks

Shiwanka

 
Nicolai Pedersen
Reply

It made it in Dynamicweb.Mailing after October 11th. Find it on nuget.

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

Thanks for the quick update Nicolai

 

 
Nicolai Pedersen
Reply

If you have these scenarios where you send a lot of unique emails, it might be a better idea to isolate an instance of Dynamicweb for email sending in a seperate iis instance. In that way it is possible to limit CPU usage and avoid affecting the website that much. You can even put the newsletter instance onto another server to completely seperate those tasks further.

The 2 instances can run on the same application, database and files but be 2 instances - and if needed also enable NLB between the nodes.

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

Thanks for the Tip, 

 
Scott Forsyth Dynamicweb Employee
Scott Forsyth
Reply

@Imar, we're looking forward to our next large mailing, to try it out. I guess we haven't had any large ones in the last few months. So, I don't have a firsthand real-world update yet.