
Welcome to "Asp.Net Core: Background Processing using Hangfire" course, where you will start by learning what a background process is and why to use Hangfire.
In this part, we will discuss the different background jobs and why to use hangfire for background processing...
Source code: https://github.com/etrupja/hangfire-webapi
In this part, we will finally set up the development environment.
You will:
Install hangfire package/library
Update Startup.cs file
Update default controller
Update launchSettings.json file
In this part, you will create your first fire-and-forget job.
You will:
Add new API Endpoint
Use the Enqueue method
Test API Endpoint using Postman
Hangfire Dashboard Overview
In this part, you will create your first delayed job.
You will:
Add new API Endpoint
Use the Schedule method
Test API Endpoint using Postman
Hangfire Dashboard Overview
In this part, you will create your first recurring job.
You will:
Add new API Endpoint
Use the AddOrUpdate method of ReccuringJob class
Test API Endpoint using Postman
Hangfire Dashboard Overview
In this part, you will create your first continuous job.
You will:
Add new API Endpoint
Use the ContiueJobWith method of BackgroundJob class
Test API Endpoint using Postman
Hangfire Dashboard Overview
SQL Database Structure Overview
In the world of programming, one frequently encountered challenge is managing background jobs effectively. These tasks, which operate behind the scenes without requiring direct user interaction, are essential for many applications but can be tricky to implement correctly. Successfully running background jobs without introducing errors or complicating your codebase might seem daunting at first. However, with the right tools and understanding, it’s far more approachable than you might expect.
This course introduces you to the concept of background processes, sometimes referred to as background jobs or tasks. You will explore their significance in modern software development. Specifically, you’ll dive into Hangfire, a powerful, open-source library designed to simplify background processing in .NET and .NET Core applications. Hangfire stands out for its simplicity, persistence, transparency, reliability, and efficiency, making it an excellent choice for developers working with ASP.NET Core.
Throughout the course, you’ll gain hands-on experience and a deep understanding of key concepts. You’ll start by learning what background processes are and why they matter. From there, you’ll explore why Hangfire is a preferred solution for background processing in ASP.NET Core applications. The course will guide you through practical steps, including setting up Hangfire in an ASP.NET Core Web API project. You’ll master various types of background jobs, such as fire-and-forget jobs for one-time execution, delayed jobs for scheduled tasks, recurring jobs for repeated operations, and continuations for chaining dependent tasks.
By the end, you’ll be equipped to implement robust background processing in your own projects with confidence and precision.