EricksonLopez.Messaging

dotnet-messaging · Messaging & Events

On this page (20 sections)

1. Identity, Tier & Maturity Profile#

L3 Persistence & IntegrationsStableMaintenance: ActiveAOT: PartialMIT LicenseConfidence: HIGH
Infrastructurenet10.0

2. Value Proposition & Problem Solved#

High-performance, zero-allocation, Native AOT-first distributed messaging and pub/sub framework for .NET 10 microservices and cloud brokers.

Reflection-based message buses scan AppDomain assemblies at startup, throw poison-retry exceptions on validation rejections, and leak broker mechanics into contracts.

3. Quick Install#

Primary package: EricksonLopez.Messaging

dotnet add package EricksonLopez.Messaging --version 2.0.0
Also published in this family:
EricksonLopez.Messaging.AbstractionsEricksonLopez.Messaging.OpenTelemetryEricksonLopez.Messaging.KafkaEricksonLopez.Messaging.RabbitMQEricksonLopez.Messaging.EventsEricksonLopez.Messaging.Testing

4. Verified Ecosystem Metrics#

v2.0.0
NuGet Published Version
v3.0.0
Repo HEAD Version
3,379
NuGet Downloads
12
Packable Packages
338
Public API Members
8
Benchmark Rows (RyuJIT)

Snapshot retrieved UTC: 2026-12-01

5. When to Use & When Not to Use#

When to use

  • You want .NET 10 Native AOT pub/sub contracts returning ValueTask<Result> across In-Memory, RabbitMQ, Azure Service Bus, AWS SQS, or Kafka.

When NOT to use

  • You only need atomic database-to-broker outbox persistence—pair with or use EricksonLopez.Outbox directly.

6. Core Capabilities & Design Invariants#

Pluggable Multi-Broker Transports

Supports In-Memory Channels, RabbitMQ, Azure Service Bus, AWS SQS, and Apache Kafka with IBatchMessageTransport.

Resiliency Middleware & Analyzers

Circuit breaker, deduplication, exception translation, health checks, and compile-time Roslyn analyzers.

7. Included NuGet Packages & Adapters#

Package IDStatusNuGet / LocalTFMsAOT StatusDownloadsDescription
EricksonLopez.MessagingPrimaryPublishedv2.0.0 / v3.0.0net10.0AOT: Full399High-performance, low-allocation, Native AOT-first distributed messaging framework for .NET 10+ ecosystem.
EricksonLopez.Messaging.AbstractionsPublishedv2.0.0 / v3.0.0net10.0AOT: Full435Pure abstractions and contracts for the EricksonLopez.Messaging distributed messaging framework. Provides IMessagePublisher, IMessageConsumer, and message contracts without infrastructure dependencies.
EricksonLopez.Messaging.OpenTelemetryPublishedv2.0.0 / v3.0.0net10.0AOT: Full307OpenTelemetry instrumentation and Semantic Conventions v1.26+ support for EricksonLopez.Messaging.
EricksonLopez.Messaging.KafkaPublishedv2.0.0 / v3.0.0net10.0AOT: Incompatible292Apache Kafka message transport for EricksonLopez.Messaging ecosystem.
EricksonLopez.Messaging.RabbitMQPublishedv2.0.0 / v3.0.0net10.0AOT: Full284RabbitMQ transport implementation for EricksonLopez.Messaging ecosystem.
EricksonLopez.Messaging.EventsPublishedv2.0.0 / v3.0.0net10.0AOT: Full283Transport bridge for EricksonLopez.Events. Implements IEventPublisher backed by EricksonLopez.Messaging.Abstractions for distributed event dispatching across brokers.
EricksonLopez.Messaging.TestingPublishedv2.0.0 / v3.0.0net10.0AOT: Full282Testing utilities for EricksonLopez.Messaging — provides InMemoryTestHarness with published and consumed message tracking for unit and integration tests.
EricksonLopez.Messaging.AwsSqsPublishedv2.0.0 / v3.0.0net10.0AOT: Full278AWS SQS message transport for EricksonLopez.Messaging ecosystem.
EricksonLopez.Messaging.AzureServiceBusPublishedv2.0.0 / v3.0.0net10.0AOT: Full276Azure Service Bus transport implementation for EricksonLopez.Messaging ecosystem.
EricksonLopez.Messaging.GeneratorsAnalyzer / GeneratorPublishedv2.0.0 / v3.0.0netstandard2.0AOT: N/A (Analyzer/Legacy)281Roslyn Incremental Source Generator for EricksonLopez.Messaging zero-reflection AOT dispatch and DI registration.
EricksonLopez.Messaging.AnalyzersAnalyzer / GeneratorPublishedv2.0.0 / v3.0.0netstandard2.0AOT: N/A (Analyzer/Legacy)262Roslyn analyzers for EricksonLopez.Messaging architectural constraints, diagnostics, and code fixes.
EricksonLopez.Messaging.IdempotencyUnpublished— / v3.0.0net10.0AOT: Full0Distributed idempotency and deduplication bridge for EricksonLopez.Messaging ecosystem integrating EricksonLopez.Idempotency.Abstractions.

8. Quick Start Code Example#

Grounded in verified public APIs from EricksonLopez.Messaging. Compile with `<ImplicitUsings>disable</ImplicitUsings>` and explicit imports.

using System;
using EricksonLopez.Messaging.Attributes;
using EricksonLopez.Messaging.Contracts;

[MessageType("orders.order-created.v1")]
public sealed record OrderCreatedMessage(
    Guid OrderId,
    string CustomerNumber,
    decimal TotalAmount,
    DateTimeOffset CreatedAtUtc) : IMessage;

9. Architecture & Dependency Flow#

flowchart LR
  lib_messaging["EricksonLopez.Messaging (L3)"]
  lib_events["EricksonLopez.Events (L0)"]
  lib_messaging --> lib_events
  lib_result["EricksonLopez.Result (L0)"]
  lib_messaging --> lib_result
  lib_idempotency["EricksonLopez.Idempotency (L2)"]
  lib_messaging -.-> lib_idempotency
EricksonLopez.Messaging Dependency Topology3 upstream library dependencies and 0 downstream dependent libraries verified in dependencies.json.
View accessible text summary and structure

3 upstream library dependencies and 0 downstream dependent libraries verified in dependencies.json.

DirectionLibraryTierRelationship Kinds
UpstreamEricksonLopez.EventsL0Compile-Time, NuGet Package
UpstreamEricksonLopez.ResultL0Compile-Time, NuGet Package
UpstreamEricksonLopez.IdempotencyL2Adapter
flowchart LR
  lib_messaging["EricksonLopez.Messaging (L3)"]
  lib_events["EricksonLopez.Events (L0)"]
  lib_messaging --> lib_events
  lib_result["EricksonLopez.Result (L0)"]
  lib_messaging --> lib_result
  lib_idempotency["EricksonLopez.Idempotency (L2)"]
  lib_messaging -.-> lib_idempotency

10. Target Frameworks & Native AOT / Trimming Matrix#

MSBuild `.csproj` inspection across 12 packages: 9 Full, 0 Partial, 1 Incompatible, 2 NotApplicable (analyzers/generators).

Package IDIsAotCompatibleEnableTrimAnalyzerVerified AOT StatusTarget Frameworks
EricksonLopez.MessagingtruetrueFullnet10.0
EricksonLopez.Messaging.AbstractionstruetrueFullnet10.0
EricksonLopez.Messaging.OpenTelemetrytruetrueFullnet10.0
EricksonLopez.Messaging.KafkafalsetrueIncompatiblenet10.0
EricksonLopez.Messaging.RabbitMQtruetrueFullnet10.0
EricksonLopez.Messaging.EventstruetrueFullnet10.0
EricksonLopez.Messaging.TestingtruetrueFullnet10.0
EricksonLopez.Messaging.AwsSqstruetrueFullnet10.0
EricksonLopez.Messaging.AzureServiceBustruetrueFullnet10.0
EricksonLopez.Messaging.GeneratorsfalsefalseNotApplicablenetstandard2.0
EricksonLopez.Messaging.AnalyzersfalsefalseNotApplicablenetstandard2.0
EricksonLopez.Messaging.IdempotencytruetrueFullnet10.0

11. Upstream Dependencies & Downstream Dependents#

Upstream Dependencies (3)

Downstream Dependents (0)

No other EricksonLopez.* libraries currently depend on this family.

12. Optional Adapters & Third-Party Integrations#

Internal Adapter Edges & Integration Packages

Verified External NuGet Dependencies (13)

AWSSDK.SQSAzure.IdentityAzure.Messaging.ServiceBusConfluent.KafkaMicrosoft.Extensions.DependencyInjection.AbstractionsMicrosoft.Extensions.Diagnostics.HealthChecks.AbstractionsMicrosoft.Extensions.Hosting.AbstractionsMicrosoft.Extensions.Logging.AbstractionsMicrosoft.Extensions.ObjectPoolMicrosoft.Extensions.OptionsOpenTelemetryOpenTelemetry.ApiRabbitMQ.Client

13. Configuration & DI Registration Summary#

Verified DI & Configuration Entry Points

  • MessagingHealthCheckExtensions.AddMessagingHealthCheck

    Registers a transient `MessagingHealthCheck` in the service collection.

  • MessagingHealthCheckExtensions.AddMessagingLivenessCheck

    Registers a transient `MessagingHealthCheck` configured specifically for process liveness probes.

  • MessagingHealthCheckExtensions.AddMessagingReadinessCheck

    Registers a transient `MessagingHealthCheck` configured specifically for operational readiness probes.

  • MessageConsumer.AddDestination

    Adds an additional destination queue or topic for subscription prior to starting the consumer.

  • MessagingEventsServiceCollectionExtensions.AddMessagingEventPublisher

    Registers `MessagingEventPublisher` as the `IEventPublisher` implementation in the service container.

  • MessagingOptionsBuilder.AddCircuitBreaker

    Adds circuit breaker resilience middleware to the message processing pipeline.

  • MessagingOptionsBuilder.AddDeduplication

    Adds message deduplication middleware to prevent repeated execution of duplicate messages based on message identity.

  • MessagingOptionsBuilder.AddExceptionHandling

    Adds exception handling middleware that catches unhandled exceptions and converts them into `Result.Result` failures, preventing raw exceptions from escaping the pipeline.

  • MessagingOptionsBuilder.AddHandlerTimeout

    Adds handler execution timeout middleware to the message processing pipeline using a configuration delegate.

  • MessagingOptionsBuilder.AddLogging

    Adds structured logging middleware that records message processing events with full context correlation.

  • MessagingOptionsBuilder.AddMiddleware<TMiddleware>

    Registers a custom middleware into the message processing pipeline.

  • MessagingOptionsBuilder.AddRetry

    Adds retry middleware with exponential backoff and full-jitter randomization to the message processing pipeline.

Key Public Types & Contracts

  • EricksonLopez.Messaging.MessagingHealthCheckExtensions (class)

    Provides extension methods for registering `MessagingHealthCheck` in health check services.

  • EricksonLopez.Messaging.Analyzers.Analyzers.DomainBoundaryAnalyzer (class)

    Provides a Roslyn analyzer that ensures message contracts do not reference domain entities or aggregate roots.

  • EricksonLopez.Messaging.Analyzers.Analyzers.HandlerAsyncAnalyzer (class)

    Provides a Roslyn analyzer that detects synchronous blocking calls in message handlers.

  • EricksonLopez.Messaging.Analyzers.Analyzers.HandlerMustReturnResultAnalyzer (class)

    Provides a Roslyn analyzer that validates message handlers return `ValueTask<Result>` for functional error handling.

  • EricksonLopez.Messaging.Analyzers.Analyzers.InvalidHandlerLifetimeAnalyzer (class)

    Provides a Roslyn analyzer that enforces scoped service lifetime registrations for message handlers.

  • EricksonLopez.Messaging.Analyzers.Analyzers.MessageTypeAttributeAnalyzer (class)

    Provides a Roslyn analyzer that verifies all message implementations declare the `[MessageType]` attribute.

  • EricksonLopez.Messaging.Analyzers.Rules.DiagnosticDescriptors (class)

    Provides diagnostic descriptors for Roslyn analyzer rules in the messaging framework.

  • EricksonLopez.Messaging.Attributes.MessageTypeAttribute (class)

    Specifies a stable, cross-platform string identifier for a message type contract.

  • EricksonLopez.Messaging.Attributes.PartitionKeyAttribute (class)

    Specifies that a property within a message contract serves as the partition key for message ordering and routing.

  • EricksonLopez.Messaging.Contracts.DeadLetterReason (record)

    Represents a structured reason descriptor detailing why a message was diverted to a dead-letter queue.

  • EricksonLopez.Messaging.Contracts.IDeadLetterQueue (interface)

    Defines a mechanism for routing poisoned, invalid, or permanently failing messages to a durable dead-letter queue.

  • EricksonLopez.Messaging.Contracts.IMessage (interface)

    Defines a marker interface for all strongly-typed messages transmitted across the messaging system.

14. Verified Performance Benchmarks#

All verified measurements below come strictly from `BenchmarkDotNet.Artifacts` running on .NET RyuJIT (0 NativeAOT benchmark runs exist in this snapshot).

Total rows: 8 · Measured: 8 · NA / Error: 0 · Suites: 1

Observed runtimes: .NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI

Observed CPUs: Unknown processor

SuiteMethodRuntimeMean (ns)Allocated (B)Status
MessagingBenchmarksSerialization_Serialize.NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI73.0896measured
MessagingBenchmarksDeserialization_Deserialize.NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI136.76168measured
MessagingBenchmarksDispatch_Simple.NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI263.16592measured
MessagingBenchmarksPublish_Message.NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI287.34520measured
MessagingBenchmarksSend_Message.NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI287.85480measured
MessagingBenchmarksDispatch_WithDefaultPipeline.NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI422.38688measured
MessagingBenchmarksHandler_ResolveTypeName.NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI675.93448measured
MessagingBenchmarksDispatch_CancelledPath.NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI2,614.021,344measured

15. Release History & NuGet vs Repo Status#

Version lag detected: NuGet.org latest published version is v2.0.0, while local repository HEAD is at v3.0.0.

VersionSourcePublished DateSummary
v2.0.0 ↗nuget2026-09-23Published EricksonLopez.Messaging 2.0.0 to NuGet.org.
v2.0.0 ↗github2026-09-23[2.0.0](https://github.com/ericksonlopezf/dotnet-messaging/compare/v1.0.0...v2.0.0) (2026-09-23) ⚠ BREAKING CHANGES * implement deduplication pipeline, partition resolution and concurrency controls ✨ Features * implement deduplication pipeline, partition resolution and concurrency controls ([e87fc68](https://github.com/ericksonlopezf/dotnet-messaging/commit/e87fc68433dabb96c2214885b8639bb095e76...
v1.0.0 ↗github2026-08-28Ecosystem Packages in this release | Package | Version | |---------|---------| | `EricksonLopez.Messaging.Abstractions` | `1.0.0` | | `EricksonLopez.Messaging` | `1.0.0` | | `EricksonLopez.Messaging.Analyzers` | `1.0.0` | | `EricksonLopez.Messaging.AzureServiceBus` | `1.0.0` | | `EricksonLopez.Messaging.Generators` | `1.0.0` | | `EricksonLopez.Messaging.OpenTelemetry` | `1.0.0` | | `EricksonLop...
v1.0.0 ↗nuget2026-08-28Published EricksonLopez.Messaging 1.0.0 to NuGet.org.

Libraries in the same tier, architectural layer, or directly paired via dependency edges.

17. Documentation, API Reference & Portal Links#

Per-library conceptual Starlight pages expand in M4; API Reference pages expand in M3.2.

18. Source Repository, License & Contributing#

Released under the MIT License. All assemblies follow EricksonLopez.* build invariants: explicit imports, strong-name signing (`EricksonLopez.snk`), and ASCII author metadata (`Erickson Lopez`).

19. Troubleshooting, Pitfalls & Migration Guidance#

  • Targets net10.0 only across local packages; check Kafka/cloud broker sub-packages for AOT compatibility flags.
  • Version lag detected: NuGet.org latest published version is v2.0.0, while local repository HEAD is at v3.0.0.

20. Quality & Verification Evidence#

Strong-Name Signing (`EricksonLopez.snk`)
EricksonLopez.snk
`ImplicitUsings=disable`
disable
XML Documentation Extraction
Verified (25 namespaces, 95 types, 338 members)
MSBuild AOT / Trim Attributes
9 Full / 0 Partial / 1 Incompatible / 2 N/A
BenchmarkDotNet Artifacts
8 total (8 measured, 0 na_error)

Explicit Verification Boundaries & Limitations

  • All verified measurements below come strictly from `BenchmarkDotNet.Artifacts` running on .NET RyuJIT (0 NativeAOT benchmark runs exist in this snapshot).
  • 1 unpublished

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.