Rebus is a service bus library for .NET microservices that routes messages as dumb pipes between smart endpoints. It targets broad .NET Standard runtimes with minimal dependencies.
Overview
Rebus gives .NET applications a lightweight message bus for asynchronous communication in distributed and microservice setups. It acts as a message bus without smarts: transport and routing plumbing while your endpoints own business logic, aligned with smart endpoints and dumb pipes.
Configuration is meant to stay simple, with a small set of options, few required dependencies, and integration broken out into dedicated companion packages for queues, storage, and containers. The central API revolves around a bus class you can wire manually or through a configuration API and common IoC adapters.
Message handlers can be registered from assemblies, including namespace-scoped mapping when an assembly is shared with unrelated code. The core library is free to use; a separate commercial offering adds support, tooling, and centralized fleet management for failed messages and observability.
Rebus aims for intuitive setup, clear error messages, and patterns familiar from proven messaging systems. Integration libraries extend it for specific transports and hosting environments without bloating the core package.
Key features
- Asynchronous messaging for .NET
- Simple configuration story
- IoC container integration
- Separate integration libraries
- JSON.NET as core dependency
- Namespace-scoped handler mapping
- Broad .NET Standard targeting
- Handler-centric programming model
Use cases
- Microservice message passing
- Decoupled domain events
- Background command processing
- Queue-backed workers in .NET
- Replacing ad-hoc async glue code