Best practices for using Amazon SQS - Polling the queue

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-04-20T22:04:51Z Indexed on 2010/04/21 21:03 UTC
Read the original article Hit count: 295

I'm designing a service for sending out emails for our eCommerce site (order confirmations, alerts etc...) The plan is to have a "SendEmail" method, that generates a chunk of XML representing the email to be sent, and sticks it on an Amazon SQS queue. My web app(s) and other applications will use this to "send" emails.

I then require a way of checking the queue, and physically sending out the email messages. (I know how I'm going to be dispatching emails)

I'm curious as to what the best way to "poll" the queue would be?

Should I create a windows service, and use something like Quartz.net to schedule it to check the queue every x number of minutes for example? Is there a better way of doing this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about amazon-sqs