Yesterday afternoon, at Microsoft's MVP 2015 Community Auditorium, we shared a topic: Performing background tasks in an ASP. This is not at all tall, and there is a bit of rustic technology to share. But I believe many people have encountered such problems.
Although it is a very simple technology, but the class to listen to the students are still many, here again thank you for your support.
In this sharing I have mainly introduced three kinds of solutions:
- Queuebackgroundworkitem
- Hangfire
- Azure WebJobs
The basic usage of these three scenarios is also demonstrated synchronously, but because of the live demonstrations, the code is explained in a single stroke. However, the use of these three technologies is not complicated, so you can look at the official documentation, you should be able to get started soon.
In the demonstration webjob is the reminder mechanism, because is the storage code explanation, perhaps some classmates did not understand very much, therefore I specially here to add a time series diagram:
Here are some of the reference links given in the PPT:
Sample message Sending code: Https://github.com/heavenwing/MailSender
QBWI: Reference 1, reference 2
http://hangfire.io/
Azure Webjobs Recommended Resources
In addition, regarding the "where to go next" in real-world cases, due to the temporal relationship, I only talked about developing an abstraction layer to use different technologies under different deployment conditions, and not seeing the ability to restart in tasks (i.e. "breakpoint continuation").
Finally, the PPT of this lecture is shared in: Http://pan.baidu.com/s/1eQpKURK
MVP 2015 Community Lecture: Performing Background tasks in an ASP.