O SlideShare utiliza cookies para otimizar a funcionalidade e o desempenho do site, assim como para apresentar publicidade mais relevante aos nossos usuários. Se você continuar a navegar o site, você aceita o uso de cookies. Leia nosso Contrato do Usuário e nossa Política de Privacidade.
O SlideShare utiliza cookies para otimizar a funcionalidade e o desempenho do site, assim como para apresentar publicidade mais relevante aos nossos usuários. Se você continuar a utilizar o site, você aceita o uso de cookies. Leia nossa Política de Privacidade e nosso Contrato do Usuário para obter mais detalhes.
he client will create the jobs and control is return to the caller after hangfire serailizes json format and saves it to the storage. The application pools and server can restarted as it is maintained in a persistent storage, the jobs will be surive after the server/application restarts. The hangfire server will process the background jobs with a decidated background thread, it will fetch the jobs from the storage and starts process based on the job type.
An easy way to perform background processing in .NET and
.NET Core applications.
NoWindows Service or separate process required.
Easy way to perform fire-and-forget, delayed and recurring
jobs inside ASP.NET applications.
Provides a unified programming model to handle background
tasks in a reliable way
Run them on shared hosting, dedicated hosting or in cloud.
.NET Framework 4.5
Persistent storage (listed below)
Newtonsoft.Json library ≥ 5.0.1
Hangfire is available as a NuGet package.
install it using the NuGet Package Console window:
PM> Install-Package Hangfire
Supports all kind of background tasks
Short-running and long-running
CPU intensive and I/O intensive
One shot and recurrent.
These jobs are executed only once and almost immediately after they fired.
Delayed jobs are executed only once too, but not immediately – only
after the specified time interval.
Recurring jobs fired many times on the specified CRON schedule.
Continuations are executed when parent job has been finished.
Batch is a group of background jobs created atomically.
Batch continuation is fired when all background jobs in a parent
Use them when a background processes run continuously through
out the lifetime of an application.
Easy to setup.
NoWindows Service, noWindows Scheduler, no separate applications
Background jobs are created in a persistent storage
Auto handling exception
Can use Hangfire on different machines to get more processing power
with no configuration
synchronization is performed automatically.
You don't need to perform manual storage clean-up – Hangfire keeps it
as clean as possible and removes old records automatically.