Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. .NET
  3. LiteBus

LiteBus

MITC#v6.0.1

A lightweight, high-performance mediator for implementing Command Query Separation (CQS) and Domain-Driven Design (DDD) in .NET applications.

Visit WebsiteGitHubGitHub
233 stars17 forks0 contributors

What is LiteBus?

LiteBus is a lightweight, high-performance in-process mediator library for .NET that helps developers implement Command Query Separation (CQS) and Domain-Driven Design (DDD) patterns. It provides a clean, decoupled architecture by separating commands, queries, and events, enabling scalable and testable application design. The library minimizes reflection usage and leverages covariance and contravariance for core functionality.

Target Audience

.NET developers building enterprise applications who need a structured way to separate business logic, enforce CQS/DDD patterns, and manage cross-cutting concerns like validation, logging, and error handling.

Value Proposition

Developers choose LiteBus for its semantic messaging, granular pipeline control, and high performance as a free, open-source alternative to MediatR. Its DI-agnostic design, open generic handlers, and advanced event concurrency features provide greater flexibility and maintainability.

Overview

Modular .NET messaging for commands, queries, events, durable inbox and outbox processing, sagas, and broker transports.

Use Cases

Best For

  • Implementing Command Query Separation (CQS) in .NET applications
  • Building Domain-Driven Design (DDD) architectures with clean separation of concerns
  • Managing cross-cutting concerns like logging, validation, and metrics via open generic handlers
  • Handling complex event-driven workflows with configurable concurrency control
  • Ensuring at-least-once execution for critical commands using a durable inbox
  • Migrating from MediatR to a more semantic and feature-rich mediator

Not Ideal For

  • Applications that don't adhere to CQS or DDD principles and prefer monolithic business logic
  • Teams using dependency injection containers other than Microsoft DI or Autofac without custom adapters
  • Systems requiring out-of-process or distributed messaging for microservices communication
  • Small-scale projects where managing multiple message types and granular pipelines adds unnecessary overhead

Pros & Cons

Pros

Semantic Messaging Clarity

First-class contracts like ICommand<TResult> and IQuery<TResult> enforce Command Query Separation, making code self-documenting and intentions explicit, as shown in the quick start examples with separate command, query, and event definitions.

Granular Pipeline Control

Distinct pre-handlers, post-handlers, and error-handlers for each message type allow fine-grained processing stages, enabling validation, logging, and error handling at specific points without monolithic behaviors.

Open Generic Handlers

A single handler can apply to all matching message types via generic constraints, automatically discovered during assembly registration, simplifying cross-cutting concerns like logging and metrics without per-message boilerplate.

Advanced Event Concurrency

Configurable sequential or parallel execution for event priority groups and handlers fine-tunes throughput, useful for managing complex workflows with dependent or independent side-effects.

Cons

Modular Package Complexity

The library is split into numerous NuGet packages (e.g., separate extensions for commands, queries, events), complicating installation and dependency management compared to all-in-one alternatives like MediatR.

Limited DI Container Support

While DI-agnostic, first-class integration is only for Microsoft DI and Autofac; other containers require implementing the adapter pattern, adding development and maintenance overhead.

Smaller Community Ecosystem

As a newer alternative to MediatR, LiteBus has fewer community resources, third-party integrations, and examples, which can slow adoption and troubleshooting for teams reliant on extensive support.

Open Source Alternative To

LiteBus is an open-source alternative to the following products:

M
MediatR

A simple, unambitious mediator implementation in .NET for sending commands, queries, and notifications with in-process messaging.

Frequently Asked Questions

Quick Stats

Stars233
Forks17
Contributors0
Open Issues2
Last commit4 days ago
CreatedSince 2020

Tags

#pipeline-architecture#event-driven-architecture#mediator#cqrs#command-query-separation#dependency-injection#domain-driven-design#csharp#mediator-pattern#dotnet#dotnet-core#eventbus#ddd-patterns

Built With

.
.NET

Links & Resources

Website

Included in

.NET21.2k
Auto-fetched 17 hours ago

Related Projects

MediatRMediatR

Simple, unambitious mediator implementation in .NET

Stars11,850
Forks2,188
Last commit22 days ago
EventFlowEventFlow

Async/await first CQRS+ES and DDD framework for .NET

Stars2,564
Forks466
Last commit7 months ago
Mediator.NetMediator.Net

A simple mediator for .Net for sending command, publishing event and request response with pipelines supported

Stars531
Forks52
Last commit2 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub