Last post Nov 15, 2012 08:22 AM by matifnadeem
Nov 13, 2012 05:11 AM|cheickna|LINK
My asp.net send about a thousand e-mail per day to some users. To day i use a simple aspx page to achieve this task.
The function i use open a connexion to my sqlserver database in order to get the target users. It also get some others information from this database like a xml field contain. Then an e-mail is created using a xsl file. The e-mail is finally sent after theses
Because this task is time consumming i want to use an internal service to do this BUT a service which can be invoke into my application (and not only by external tool like windows scheduler, even if this will be possible also).
I hesitate now between a Web Service and a service based on WCF.
Can you help me to do the best choice (easy implementation, deployment and scalability)
Thank's in advance
Nov 13, 2012 10:54 AM|ozkary|LINK
You should use WCF. With an ASMX service, you are limited to IIS hosting. With WCF service, you can have different hosting mechanism as well as transports, so you have more flexibility for scalability.
1) A WCF service can behave as ASMX web service if you need to simplify the web service access
2) You could use MSMQ to process all those emails. This is just a binding on WCF.
For either approach, you can host the service on IIS and use background threads to process long tasks. This frees up the IIS threads to handle more requests.
hope that helps.
Nov 15, 2012 08:22 AM|matifnadeem|LINK
Best link to describe this