20 Hangfire alternatives

Other .net tools, in our recommended order. About Hangfire →

Microsoft Learn: .NET

Learning C# and .NET from the source
Free

Microsoft's official .NET and C# documentation, with free tutorials and learning paths from a first console app up to cloud apps.

ASP.NET Core docs

Building web APIs in .NET
Free

Official ASP.NET Core documentation: minimal APIs, controllers, middleware, authentication and hosting, with tutorials for each.

Entity Framework Core

The default data layer for most .NET apps
Free

Microsoft's ORM for .NET. Map C# classes to tables, query with LINQ, and manage schema changes with migrations. Works with SQL Server, PostgreSQL (via Npgsql), SQLite and others.

Dapper

Hand-written SQL without boilerplate
Free

Lightweight object mapper: you write the SQL, Dapper maps the rows to C# objects. Very little overhead, which is why it's often used next to EF Core for performance-critical queries.

Npgsql

Using PostgreSQL from .NET
Free

The standard .NET driver for PostgreSQL, and the base of the EF Core PostgreSQL provider.

xUnit.net

Unit tests in new .NET projects
Free

Popular unit testing framework for .NET, used by the .NET team itself. Tests are plain methods marked [Fact] or [Theory], and a new instance of the test class runs for each test.

NSubstitute

Mocking without ceremony
Free

Mocking library for .NET with a short, readable syntax: create a substitute for an interface, set return values and check calls.

Testcontainers for .NET

Integration tests against real databases
Free

Starts real throwaway Docker containers, such as PostgreSQL, Redis or RabbitMQ, from your tests, so integration tests run against the real thing instead of in-memory fakes.

NuGetDocker
Visit ↗

Serilog

Structured logs in ASP.NET Core
Free

Structured logging for .NET: log events carry named properties, not just text, and can be sent to the console, files, Seq, Elasticsearch and many other sinks.

FastEndpoints

Organising APIs one endpoint per class
Free

Framework on top of ASP.NET Core minimal APIs where each endpoint is its own class with its request, response and validation. An alternative to controllers that keeps endpoints small.

Refit

Typed clients for REST APIs
Free

Turns a REST API into a C# interface: you declare methods with attributes like [Get("/users/{id}")] and Refit generates the HttpClient code.

Polly

Retries and circuit breakers
Free

Resilience library for .NET: retries, timeouts, circuit breakers and rate limiting around calls that can fail. Microsoft's HTTP resilience packages are built on it.

FluentValidation

Request validation in APIs
Free

Validation library where rules are written in C# with a fluent syntax, such as RuleFor(x => x.Email).EmailAddress(), kept separate from your models.

MediatR

Request/handler pattern (CQRS)
Free + paid options

In-process mediator: send a request object and MediatR calls its handler, often used for CQRS-style code. Newer versions need a licence key; there is a free Community licence for smaller companies and non-profits.

MassTransit

Message-based services
Free + paid options

Messaging framework for .NET over RabbitMQ, Azure Service Bus, Amazon SQS and others, with sagas and retries built in. Version 8 is open source; version 9 is a commercial release.

MudBlazor

Building Blazor UIs quickly
Free

Free Material Design component library for Blazor: tables, forms, dialogs, charts and more, written in C# with little JavaScript.

BenchmarkDotNet

Measuring performance before optimising
Free

Library for measuring .NET code performance properly: it handles warm-up, repeats runs and reports statistics and memory allocations.

JetBrains Rider

A .NET IDE on Windows, Mac or Linux
Free + paid options

Cross-platform .NET IDE from JetBrains with ReSharper's refactorings and inspections built in. Free for non-commercial use; paid for commercial work.

WindowsmacOSLinux
Visit ↗

LINQPad

Trying out C# and queries fast
Free + paid options

Scratchpad for C#: run snippets and query databases with LINQ or SQL, and see results as tables, without creating a project. Free edition; paid editions add autocompletion and more.

WindowsmacOS
Visit ↗

Playwright

Browser end-to-end tests
Free

End-to-end testing from Microsoft for Chromium, Firefox and WebKit, with auto-waiting, tracing and a code generator. Also has Python, .NET and Java versions.

npmPyPINuGet
Visit ↗