Cirreum.Runtime.Messaging
1.0.22
dotnet add package Cirreum.Runtime.Messaging --version 1.0.22
NuGet\Install-Package Cirreum.Runtime.Messaging -Version 1.0.22
<PackageReference Include="Cirreum.Runtime.Messaging" Version="1.0.22" />
<PackageVersion Include="Cirreum.Runtime.Messaging" Version="1.0.22" />
<PackageReference Include="Cirreum.Runtime.Messaging" />
paket add Cirreum.Runtime.Messaging --version 1.0.22
#r "nuget: Cirreum.Runtime.Messaging, 1.0.22"
#:package Cirreum.Runtime.Messaging@1.0.22
#addin nuget:?package=Cirreum.Runtime.Messaging&version=1.0.22
#tool nuget:?package=Cirreum.Runtime.Messaging&version=1.0.22
Cirreum.Runtime.Messaging
High-performance distributed messaging with advanced batching and observability for .NET applications
Overview
Cirreum.Runtime.Messaging provides a sophisticated distributed messaging infrastructure for .NET applications, featuring intelligent batching, priority-based delivery, and comprehensive observability. Built on the Cirreum Foundation Framework, it offers both synchronous and asynchronous message delivery patterns with built-in resilience and monitoring capabilities.
Key Features
🚀 Flexible Message Delivery
- Dual-mode publishing: Direct (synchronous) and background (asynchronous) delivery
- Transport abstraction: Pluggable providers (Azure Service Bus included)
- Message targeting: Support for both queue-based events and topic-based notifications
📦 Advanced Batching System
- Dynamic batch sizing: Automatically adjusts based on load and time profiles
- Priority queuing: High-priority messages with automatic promotion
- Circuit breaker: Built-in fault tolerance for resilient message delivery
- Configurable profiles: Peak and off-peak batching strategies
📊 Comprehensive Observability
- OpenTelemetry integration: Distributed tracing and metrics collection
- Lifecycle tracking: Monitor messages from receipt to delivery
- Queue depth alerts: Configurable thresholds for proactive monitoring
- Performance metrics: Detailed timing for queue and delivery operations
⚙️ Production-Ready
- Thread-safe operations: Designed for high-concurrency scenarios
- Graceful shutdown: Proper cleanup of background services
- Health checks: Integration with ASP.NET Core health monitoring
- Structured logging: Rich context for troubleshooting
Quick Start
Installation
dotnet add package Cirreum.Runtime.Messaging
Basic Setup
var builder = Host.CreateApplicationBuilder(args);
// Add distributed messaging with metrics
builder.AddDistributedMessaging()
.AddDistributedMessagingMetrics();
// Add Azure Service Bus as the transport provider
builder.AddAzureServiceBusProvider();
var host = builder.Build();
await host.RunAsync();
Publishing Messages
public class OrderService
{
private readonly IDistributedMessagePublisher _publisher;
public OrderService(IDistributedMessagePublisher publisher)
{
_publisher = publisher;
}
public async Task ProcessOrderAsync(Order order)
{
// Publish directly (synchronous)
await _publisher.PublishAsync(new OrderCreatedEvent(order.Id));
// Publish in background (batched)
await _publisher.PublishInBackgroundAsync(
new OrderNotification(order.Id),
DistributedMessagePriority.Normal);
}
}
Configuration
{
"DistributedMessaging": {
"BackgroundDelivery": {
"Enabled": true,
"MaxBatchSize": 100,
"MaxQueueSize": 10000,
"DeliveryTimeout": "00:00:30",
"CircuitBreaker": {
"FailureThreshold": 5,
"BreakDuration": "00:01:00"
}
},
"Metrics": {
"Enabled": true,
"QueueDepthAlertThreshold": 1000,
"AlertSuppressionPeriod": "00:05:00"
}
}
}
Documentation
- Configuration Guide - Detailed configuration options and examples
- API Documentation - Complete API reference
- Architecture Overview - Design decisions and patterns
Contribution Guidelines
Be conservative with new abstractions
The API surface must remain stable and meaningful.Limit dependency expansion
Only add foundational, version-stable dependencies.Favor additive, non-breaking changes
Breaking changes ripple through the entire ecosystem.Include thorough unit tests
All primitives and patterns should be independently testable.Document architectural decisions
Context and reasoning should be clear for future maintainers.Follow .NET conventions
Use established patterns from Microsoft.Extensions.* libraries.
Versioning
Cirreum.Runtime.Messaging follows Semantic Versioning:
- Major - Breaking API changes
- Minor - New features, backward compatible
- Patch - Bug fixes, backward compatible
Given its foundational role, major version bumps are rare and carefully considered.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Cirreum Foundation Framework
Layered simplicity for modern .NET
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Cirreum.Core (>= 1.0.40)
- Cirreum.Messaging.Azure (>= 1.0.6)
- Cirreum.Runtime.ServiceProvider (>= 1.0.6)
- Cirreum.Startup (>= 1.0.108)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.22 | 91 | 2/5/2026 |
| 1.0.21 | 89 | 1/28/2026 |
| 1.0.20 | 93 | 1/21/2026 |
| 1.0.19 | 99 | 1/12/2026 |
| 1.0.18 | 96 | 1/11/2026 |
| 1.0.17 | 103 | 1/6/2026 |
| 1.0.16 | 96 | 1/5/2026 |
| 1.0.15 | 99 | 1/2/2026 |
| 1.0.14 | 102 | 1/1/2026 |
| 1.0.12 | 102 | 12/30/2025 |
| 1.0.11 | 96 | 12/29/2025 |
| 1.0.10 | 92 | 12/29/2025 |
| 1.0.9 | 192 | 12/25/2025 |
| 1.0.8 | 181 | 12/22/2025 |
| 1.0.7 | 138 | 12/20/2025 |
| 1.0.6 | 254 | 12/19/2025 |
| 1.0.5 | 286 | 12/16/2025 |
| 1.0.4 | 171 | 12/5/2025 |
| 1.0.3 | 425 | 12/1/2025 |
| 1.0.2 | 427 | 11/30/2025 |