Hangfire logo

Hangfire

Perform background processing in .NET and .NET Core applications
167
244
+ 1
17

What is Hangfire?

It is an open-source framework that helps you to create, process and manage your background jobs, i.e. operations you don't want to put in your request processing pipeline. It supports all kind of background tasks – short-running and long-running, CPU intensive and I/O intensive, one shot and recurrent.
Hangfire is a tool in the Background Processing category of a tech stack.
Hangfire is an open source tool with 9K GitHub stars and 1.7K GitHub forks. Here’s a link to Hangfire's open source repository on GitHub

Who uses Hangfire?

Companies
45 companies reportedly use Hangfire in their tech stacks, including XYZ Technology, Hivemind, and INDATA-Tech.

Developers
115 developers on StackShare have stated that they use Hangfire.

Hangfire Integrations

Pros of Hangfire
7
Integrated UI dashboard
5
Simple
3
Robust
2
In Memory
0
Simole
Decisions about Hangfire

Here are some stack decisions, common use cases and reviews by companies and developers who chose Hangfire in their tech stack.

Chris Bleck
Site Reliability Engineer at Cooperative Bank Of Thessaly · | 4 upvotes · 11.9K views
Needs advice
on
GraylogGraylog
and
PrometheusPrometheus

We are a small bank and we have 5 VMware ESXi servers with mainly Windows Server VMs with numerous windows services installed and most of these servers have Microsoft SQL Server and Microsoft IIS installed. Also we have some applications that have application logs (mainly in a db table) and we have a few Hangfire instances and one MQ Series server.

Now the management gave me the task of site reliability (I'm fairly new to this) which means all Windows Services must run 24/7 so I have to know if a service fails to start. All databases must run properly so I have to know locks, Query performance, and any SQL Agent job failures. The same goes for IIS websites/services must be up and running all the time.

In addition to these, I must collect all the Hangfire job failures(which are a lot) as well as general server metrics like CPU, RAM, I/O Disk, Disk sizes, etc.

On top of all these, I must setup alerts via Slack/sms or mail. Now the question which tool or a stack of tools can achieve all that?

See more
Needs advice
on
HangfireHangfire
and
QuartzQuartz

Hi, we are using Quartz v2 in our legacy project and we now are creating a stack for a new project that is similar to our legacy, Going from .NET 4.8 to .Net6. We have a windows service to run the Quartz for job schedulers.

Topic: Job scheduling compatible with net 6 web application (C#) Candidates: Quartz.net 3.6.2 vs Hangfire 1.7.8

We liked the dashboard and simple usability of Hangfire against the only batch process of Quartz v2. I didn't find anything related to dashboards for v3. In summary, they seem similar in a practical way as dependent jobs, scheduled jobs by cron format, but I guess quartz.net isn't focused on monitoring and logging, and it is a concern to us now that we can use it for better maintainability.

See more

Hangfire Alternatives & Comparisons

What are some alternatives to Hangfire?
RabbitMQ
RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.
NServiceBus
Performance, scalability, pub/sub, reliable integration, workflow orchestration, and everything else you could possibly want in a service bus.
Azure Functions
Azure Functions is an event driven, compute-on-demand experience that extends the existing Azure application platform with capabilities to implement code triggered by events occurring in virtually any Azure or 3rd party service as well as on-premises systems.
Kafka
Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.
Sidekiq
Sidekiq uses threads to handle many jobs at the same time in the same process. It does not require Rails but will integrate tightly with Rails 3/4 to make background processing dead simple.
See all alternatives

Hangfire's Followers
244 developers follow Hangfire to keep up with related blogs and decisions.