I am looking to utilise running more than one one thread in my website.
In this instance, I have a task where I need to fire emails off to multiple users. I have to think about the fact that there could be 100's of emails sent at one time.
What I don't want, is for the end user to wait for these emails to be sent, it would take far too long. What I would like to do is send these emails on a separate thread, so that my current page can carry on processing the page.
The idea is that the user doesn't need to wait for these emails to be fired and completed, there is no message to advise the user that the emails have all successfully sent, its just something that will be done in the background.
The user just needs to be able to carry on oblivious with there usage of the system.
My Question is, what would be the best way to handle this problem.
Should I be looking at using a thread pool, or would it be better to use async methods?
Any advice would be appreciated.
sendasync.