Using Azure Worker Role as Email Processing Server

Windows Azure enables you to be more creative by leveraging web/worker roles, parallelism, queuing, service bus, distributed cache, and a lot more. I just want to share an easy way to delegate the email component to Azure Worker Role and Azure Queue storage. Sending email is a very basic and common scenario for web application. Using SmtpClient directly from your website is simple but it does have some drawbacks. For example if an email is generated during a post back, it sometimes requires lot of data from a database. In such scenario, user may experience a long wait time on their browser. One can solve this by using multi-threads approach to send email asynchronously but that may uses up web role resources.

If this is scenario sounds familiar. You may consider

Posted in .NET, Azure, C# Programming, Technical
One comment on “Using Azure Worker Role as Email Processing Server
  1. Sri says:

    Using the same pattern can we store the email attachment to Azure SQL Server table

Leave a Reply