Offloading tasks to run in the background can be really useful. There are times when your users don’t need to wait around for a task (such as sending an email) to finish.
I recently heard about Azure webjobs and decided to give them a go. It turns out they really simplify your message consuming code and finally get rid of those pesky loops!
So we’d got our contact us form working on the web site but now we had another requirement.
The boss wanted to know how many customers were using it.
In part 1 we tried (and ultimately failed) to handle customer emails using a database
Now we needed to come up with an alternative.
A few years ago I was working on a project where we needed to add email functionality to a web site.
You know the drill, a customer fills in their details on the site, clicks “Contact Us” and an email wings it’s way to someone in the office.
Read on to find out how not to do it before we look at a better solution using Azure.