Загрузка страницы

Scheduling recurring jobs with Hangfire (In ASP.Net Core 3.1)

Hangfire provides a way to create and manage scheduled jobs. Creating scheduled jobs to run at a particular interval is always tedious. And also error-prone. Hangfire encapsulates all these and provides very easy to use API for configuring jobs.

In the video, I will walk through creating a ASP.Net application, which will use Hangfire to manage recurring jobs.

The three main Nuget packages needed for hangfire are:
1. Hangfire.Core
2. Hangfire.AspNetCore
3. Hangfire.MemoryStorage

Hangfire has three main components:
1. Hangfire Server - The server is responsible for fetching the job data from the job storage and execute them. The server is also responsible for keeping the job storage clean and removing old jobs.
2. Hangfire Client - The client is responsible for creating jobs and saving them in the job storage.
3. Job Storage - Hangfire keeps the jobs and related information stored in persistent storage. Persistent storage helps survive a job in case the process is restarted. In this video, I am going to use MemoryStorage, which of course will its data once the process is restarted. But til will work for the example to show how Hangfire is used.

Github location: https://github.com/choudhurynirjhar/hangfire-demo

Видео Scheduling recurring jobs with Hangfire (In ASP.Net Core 3.1) канала DotNet Core Central
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
16 марта 2020 г. 6:00:07
00:14:16
Яндекс.Метрика