All Projects → rebus-org → Rebus

rebus-org / Rebus

Licence: other
🚌 Simple and lean service bus implementation for .NET

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to Rebus

Servicebus
Simple service bus for sending events between processes using amqp.
Stars: ✭ 415 (-76.05%)
Mutual labels:  service-bus, messaging, message-bus
go-nats-examples
Single repository for go-nats example code. This includes all documentation examples and any common message pattern examples.
Stars: ✭ 99 (-94.29%)
Mutual labels:  messaging, message-bus, message-queue
Phpnats
A PHP client for the NATSio cloud messaging system.
Stars: ✭ 209 (-87.94%)
Mutual labels:  messaging, message-queue, message-bus
psr-container-messenger
Message bus and queue for Mezzio with Symfony Messenger + Enqueue
Stars: ✭ 24 (-98.62%)
Mutual labels:  messaging, message-bus, message-queue
Nats.c
A C client for NATS
Stars: ✭ 220 (-87.31%)
Mutual labels:  messaging, message-queue, message-bus
Nats Server
High-Performance server for NATS.io, the cloud and edge native messaging system.
Stars: ✭ 10,223 (+489.9%)
Mutual labels:  messaging, message-queue, message-bus
Spring Cloud Bus
Spring Cloud event bus
Stars: ✭ 342 (-80.27%)
Mutual labels:  microservices, messaging
Nsq
A realtime distributed messaging platform
Stars: ✭ 20,663 (+1092.33%)
Mutual labels:  messaging, message-queue
Nats.net
The official C# Client for NATS
Stars: ✭ 378 (-78.19%)
Mutual labels:  messaging, message-bus
Nsq
A realtime distributed messaging platform (forked from https://github.com/nsqio/nsq)
Stars: ✭ 476 (-72.53%)
Mutual labels:  messaging, message-queue
OpenSleigh
OpenSleigh is a Saga management library for .NET Core.
Stars: ✭ 198 (-88.57%)
Mutual labels:  message-bus, message-queue
Service Bus
PHP Lightweight Message Bus supporting CQRS.
Stars: ✭ 431 (-75.13%)
Mutual labels:  service-bus, messaging
Plumber
A swiss army knife CLI tool for interacting with Kafka, RabbitMQ and other messaging systems.
Stars: ✭ 514 (-70.34%)
Mutual labels:  message-queue, message-bus
Citrus
Framework for automated integration tests with focus on messaging integration
Stars: ✭ 329 (-81.02%)
Mutual labels:  microservices, messaging
Obvs
An observable microservice bus library for .NET, that wraps the underlying message transports in simple Rx based interfaces.
Stars: ✭ 290 (-83.27%)
Mutual labels:  microservices, messaging
Benthos
Fancy stream processing made operationally mundane
Stars: ✭ 3,705 (+113.79%)
Mutual labels:  message-queue, message-bus
Azure Service Bus
☁️ Azure Service Bus service issue tracking and samples
Stars: ✭ 472 (-72.76%)
Mutual labels:  service-bus, messaging
Mq
MQ is a simple distributed in-memory message broker
Stars: ✭ 114 (-93.42%)
Mutual labels:  message-queue, message-bus
Remit
RabbitMQ-backed microservices supporting RPC, pubsub, automatic service discovery and scaling with no code changes.
Stars: ✭ 24 (-98.62%)
Mutual labels:  microservices, messaging
Nsq Event Bus
A tiny wrapper around NSQ topic and channel 🚀
Stars: ✭ 66 (-96.19%)
Mutual labels:  microservices, message-bus

Rebus

Latest stable: NuGet stable

Current prerelease: NuGet pre

Tests: Build status

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 4.5, .NET 4.6, and .NET Standard 2.0, i.e. full .NET fx and .NET core)
  • 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 [email protected] and then we will work something out.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].