Background Tasks Made Easy With Hangfire And .Net 5

Jay Krishna Reddy
Nerd For Tech
Published in
5 min readApr 3, 2021

--

Hangfire with .Net 5.0

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

  1. What is Hangfire and why do I need background tasks.
  2. Setup and Configure Hangfire
  3. Secure the Hangfire Dashboard.
  4. Hangfire Retention Time.
  5. 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.

--

--

Jay Krishna Reddy
Nerd For Tech

✍🏼 Sharing my interesting discoveries about technology