We send out emails to around 10k client and right now the process takes around 45 min or so. The application runs on the server and just sends out the whole batch. I’m wondering if introducing threads and splitting up the list would speed up the process. If so, how many threads are optimal?
EDIT:
actually it is one message that we usually send and we add all the recipients to the bcc. However, it still takes a long time. We send it out through our server on a fiber line.
You must profile your process before making any decisions.
Where is the time spent (creating the messages, retrieving recipients, submitting the messages to SMTP, SMTP sending messages, etc.)?
Do not guess or assume you know where the bottleneck it, especially when considering a parallel approach. You could easily make things worse (or have no impact).