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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cirreum.Runtime.Messaging" Version="1.0.22" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cirreum.Runtime.Messaging" Version="1.0.22" />
                    
Directory.Packages.props
<PackageReference Include="Cirreum.Runtime.Messaging" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cirreum.Runtime.Messaging --version 1.0.22
                    
#r "nuget: Cirreum.Runtime.Messaging, 1.0.22"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Cirreum.Runtime.Messaging@1.0.22
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Cirreum.Runtime.Messaging&version=1.0.22
                    
Install as a Cake Addin
#tool nuget:?package=Cirreum.Runtime.Messaging&version=1.0.22
                    
Install as a Cake Tool

Cirreum.Runtime.Messaging

NuGet Version NuGet Downloads GitHub Release License .NET

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

Contribution Guidelines

  1. Be conservative with new abstractions
    The API surface must remain stable and meaningful.

  2. Limit dependency expansion
    Only add foundational, version-stable dependencies.

  3. Favor additive, non-breaking changes
    Breaking changes ripple through the entire ecosystem.

  4. Include thorough unit tests
    All primitives and patterns should be independently testable.

  5. Document architectural decisions
    Context and reasoning should be clear for future maintainers.

  6. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed