TheNoobs.RabbitMQ is a modern .NET library that simplifies integration with RabbitMQ. It provides abstractions and utilities for building robust, scalable, and testable messaging solutions in .NET applications.
- Easy RabbitMQ integration for .NET 9.0+
- Publisher and consumer abstractions
- Attribute-based queue and retry configuration
- Dependency injection support
- Pluggable serialization
- Built-in retry and error handling
- Unit-testable interfaces
Install via NuGet:
Install-Package TheNoobs.RabbitMQOr with .NET CLI:
dotnet add package TheNoobs.RabbitMQusing TheNoobs.RabbitMQ;
// Configure services in Startup.cs or Program.cs
services.AddRabbitMq(config =>
{
config.WithConnection("amqp://user:password@localhost:5672/vhost");
// Additional configuration
});
// Implement a consumer
public class MyConsumer : IAmqpConsumer<MyMessage>
{
public async ValueTask<Result<Void>> HandleAsync(MyMessage message, CancellationToken cancellationToken)
{
// Handle message
return Void.Value;
}
}Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License. See LICENSE for details.
♥ Made with love!