Background Tasks Made Easy With Hangfire And .Net 5
In this article we will learn about the Hangfire — .Net Library to make our background tasks and jobs easier in ASP.NET 5.0. As we all know, its newly launched Framework officially released in November. Here I am sharing the link to install the SDK for .Net 5
Prerequisites
- What is Hangfire and why do I need background tasks.
- Setup and Configure Hangfire
- Secure the Hangfire Dashboard.
- Hangfire Retention Time.
- Persistence with SQL Database.
What is Hangfire and why do we need to use this?
Hangfire is a .Net Library that helps to create background tasks and make jobs easier in .Net applications. It supports all types of tasks like “fire and forgets” and “recurring” and continuous jobs as well. You can learn more about this here: Hangfire
Why do I need background tasks?
Background tasks are important in cases where you need to perform an operation or to schedule a task for a particular time. With the background task, the process can continue running in the background where the user cannot wait for the step-by-step process.