Microting.Rebus
8.0.5
Prefix Reserved
dotnet add package Microting.Rebus --version 8.0.5
NuGet\Install-Package Microting.Rebus -Version 8.0.5
<PackageReference Include="Microting.Rebus" Version="8.0.5" />
paket add Microting.Rebus --version 8.0.5
#r "nuget: Microting.Rebus, 8.0.5"
// Install Microting.Rebus as a Cake Addin #addin nuget:?package=Microting.Rebus&version=8.0.5 // Install Microting.Rebus as a Cake Tool #tool nuget:?package=Microting.Rebus&version=8.0.5
Rebus
This repository contains Rebus "core". You may also be interested in one of the many integration libraries.
For information about the commercial add-on (support, tooling, etc.) to Rebus, please visit Rebus FM's page about Rebus Pro.
What?
Rebus is a lean service bus implementation for .NET. It is what ThoughtWorks in 2010 called a "message bus without smarts" - a library that works well as the "dumb pipes" when you need asynchronous communication in your microservices that follow the "smart endpoints, dumb pipes" principle.
Rebus aims to have
- a simple and intuitive configuration story
- a few well-selected options
- no doodleware
- as few dependencies as possible (currently only JSON.NET)
- a broad reach (targets .NET Standard 2.0, i.e. .NET Framework 4.6.1, .NET Core 2, and .NET 5 and onwards)
- integration with external dependencies via small, dedicated projects
- the best error messages in the world
- a frictionless getting-up-and-running-experience
and in doing this, Rebus should try to align itself with common, proven asynchronous messaging patterns.
Oh, and Rebus is FREE as in beer 🍺 and speech 💬, and it will stay that way forever.
More information
If you want to read more, check out the official Rebus documentation wiki or check out my blog.
You can also follow me on Twitter: @mookid8000
Getting started
Rebus is a simple .NET library, and everything revolves around the RebusBus
class. One way to get Rebus
up and running, is to manually go
var bus = new RebusBus(...);
bus.Start(1); //< 1 worker thread
// use the bus for the duration of the application lifetime
// remember to dispose the bus when your application exits
bus.Dispose();
where ...
is a bunch of dependencies that vary depending on how you want to send/receive messages etc.
Another way is to use the configuration API, in which case you would go
var someContainerAdapter = new BuiltinHandlerActivator();
for the built-in container adapter, or
var someContainerAdapter = new AdapterForMyFavoriteIocContainer(myFavoriteIocContainer);
to integrate with your favorite IoC container, and then
Configure.With(someContainerAdapter)
.Logging(l => l.Serilog())
.Transport(t => t.UseMsmq("myInputQueue"))
.Routing(r => r.TypeBased().MapAssemblyOf<SomeMessageType>("anotherInputQueue"))
.Start();
// have IBus injected in application services for the duration of the application lifetime
// let the container dispose the bus when your application exits
myFavoriteIocContainer.Dispose();
which will stuff the resulting IBus
in the container as a singleton and use the container to look up
message handlers. Check out the Configuration section on the official Rebus documentation wiki for
more information on how to do this.
If you want to be more specific about what types you map in an assembly, such as if the assembly is shared with other code you can map all the types under a specific namespace like this:
Configure.With(someContainerAdapter)
.(...)
.Routing(r => r.TypeBased().MapAssemblyNamespaceOf<SomeMessageType>("namespaceInputQueue"))
.(...);
// have IBus injected in application services for the duration of the application lifetime
// let the container dispose the bus when your application exits
myFavoriteIocContainer.Dispose();
License
Rebus is licensed under The MIT License (MIT). Basically, this license grants you the right to use Rebus in any way you see fit. See LICENSE.md for more info.
The purpose of the license is to make it easy for everyone to use Rebus and its accompanying integration libraries. If that is not the case, please get in touch with hello@rebus.fm and then we will work something out.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.3)
- system.text.json (>= 8.0.4)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Microting.Rebus:
Package | Downloads |
---|---|
Microting.eForm
Package Description |
|
Microting.Rebus.RabbitMq
Provides a RabbitMQ transport for Rebus |
|
Microting.Rebus.Castle.Windsor
Provides a Castle Windsor container adapter for Rebus |
|
Microting.Rebus.Tests.Contracts
Contains contract tests for Rebus services - valuable, if you e.g. want to implement your own Rebus transport, subscription storage, etc. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.5 | 21,206 | 7/24/2024 |
8.0.4 | 10,471 | 5/29/2024 |
8.0.2 | 377 | 4/10/2024 |
8.0.1 | 21,611 | 12/8/2023 |
8.0.0 | 21,899 | 7/22/2023 |
8.0.0-pre | 261 | 4/6/2023 |
7.3.11 | 53,835 | 12/15/2022 |
7.3.10 | 5,814 | 11/29/2022 |
7.3.8 | 114,543 | 8/2/2022 |
7.3.7 | 72,885 | 6/3/2022 |
7.3.6 | 16,243 | 5/11/2022 |
7.3.5 | 15,245 | 4/28/2022 |
7.3.4 | 7,093 | 4/21/2022 |
7.3.3 | 861 | 4/21/2022 |
7.3.2 | 11,330 | 4/13/2022 |
7.3.1 | 898 | 4/12/2022 |
7.3.0 | 491 | 4/12/2022 |
7.2.0 | 221,240 | 11/13/2021 |
7.1.2 | 75,244 | 9/24/2021 |
7.1.1 | 95,277 | 7/15/2021 |
7.1.0 | 93,377 | 5/6/2021 |
7.0.1 | 12,140 | 5/3/2021 |
7.0.0 | 367 | 5/3/2021 |