This should be a very straight forward question, but I can’t find an answer.
Right now I have a windows service that uses a timer to kick off scheduled emails and do other scheduled tasks. What’s the best way to do the equivalent with Azure?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can run a background thread, launched from your Run(), that does nothing but sleep for a while and then execute some scheduled-email code.
Alternatively, you can make this task queue-driven, and place a queue message with an initial invisibility timeout set (so that the queue message won’t be retrievable until a certain time period elapses.
In either case, you’ll want to use an external SMTP service. SendGrid just announced a free tier for Windows Azure users, along with supporting libraries. See details about this here.