EricksonLopez.Messaging
dotnet-messaging · Messaging & Events
On this page (20 sections)
1. Identity, Tier & Maturity Profile#
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<PackageReference Include="EricksonLopez.Messaging" Version="2.0.0" /><PackageVersion Include="EricksonLopez.Messaging" Version="2.0.0" />4. Verified Ecosystem Metrics#
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 ID | Status | NuGet / Local | TFMs | AOT Status | Downloads | Description |
|---|---|---|---|---|---|---|
| EricksonLopez.MessagingPrimary | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 399 | High-performance, low-allocation, Native AOT-first distributed messaging framework for .NET 10+ ecosystem. |
| EricksonLopez.Messaging.Abstractions | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 435 | Pure abstractions and contracts for the EricksonLopez.Messaging distributed messaging framework. Provides IMessagePublisher, IMessageConsumer, and message contracts without infrastructure dependencies. |
| EricksonLopez.Messaging.OpenTelemetry | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 307 | OpenTelemetry instrumentation and Semantic Conventions v1.26+ support for EricksonLopez.Messaging. |
| EricksonLopez.Messaging.Kafka | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Incompatible | 292 | Apache Kafka message transport for EricksonLopez.Messaging ecosystem. |
| EricksonLopez.Messaging.RabbitMQ | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 284 | RabbitMQ transport implementation for EricksonLopez.Messaging ecosystem. |
| EricksonLopez.Messaging.Events | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 283 | Transport bridge for EricksonLopez.Events. Implements IEventPublisher backed by EricksonLopez.Messaging.Abstractions for distributed event dispatching across brokers. |
| EricksonLopez.Messaging.Testing | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 282 | Testing utilities for EricksonLopez.Messaging — provides InMemoryTestHarness with published and consumed message tracking for unit and integration tests. |
| EricksonLopez.Messaging.AwsSqs | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 278 | AWS SQS message transport for EricksonLopez.Messaging ecosystem. |
| EricksonLopez.Messaging.AzureServiceBus | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 276 | Azure Service Bus transport implementation for EricksonLopez.Messaging ecosystem. |
| EricksonLopez.Messaging.GeneratorsAnalyzer / Generator | Published | v2.0.0 / v3.0.0 | netstandard2.0 | AOT: N/A (Analyzer/Legacy) | 281 | Roslyn Incremental Source Generator for EricksonLopez.Messaging zero-reflection AOT dispatch and DI registration. |
| EricksonLopez.Messaging.AnalyzersAnalyzer / Generator | Published | v2.0.0 / v3.0.0 | netstandard2.0 | AOT: N/A (Analyzer/Legacy) | 262 | Roslyn analyzers for EricksonLopez.Messaging architectural constraints, diagnostics, and code fixes. |
| EricksonLopez.Messaging.Idempotency | Unpublished | — / v3.0.0 | net10.0 | AOT: Full | 0 | Distributed 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#
Rendering diagram…
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
View accessible text summary and structure
3 upstream library dependencies and 0 downstream dependent libraries verified in dependencies.json.
| Direction | Library | Tier | Relationship Kinds |
|---|---|---|---|
| Upstream | EricksonLopez.Events | L0 | Compile-Time, NuGet Package |
| Upstream | EricksonLopez.Result | L0 | Compile-Time, NuGet Package |
| Upstream | EricksonLopez.Idempotency | L2 | Adapter |
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_idempotency10. Target Frameworks & Native AOT / Trimming Matrix#
MSBuild `.csproj` inspection across 12 packages: 9 Full, 0 Partial, 1 Incompatible, 2 NotApplicable (analyzers/generators).
| Package ID | IsAotCompatible | EnableTrimAnalyzer | Verified AOT Status | Target Frameworks |
|---|---|---|---|---|
| EricksonLopez.Messaging | true | true | Full | net10.0 |
| EricksonLopez.Messaging.Abstractions | true | true | Full | net10.0 |
| EricksonLopez.Messaging.OpenTelemetry | true | true | Full | net10.0 |
| EricksonLopez.Messaging.Kafka | false | true | Incompatible | net10.0 |
| EricksonLopez.Messaging.RabbitMQ | true | true | Full | net10.0 |
| EricksonLopez.Messaging.Events | true | true | Full | net10.0 |
| EricksonLopez.Messaging.Testing | true | true | Full | net10.0 |
| EricksonLopez.Messaging.AwsSqs | true | true | Full | net10.0 |
| EricksonLopez.Messaging.AzureServiceBus | true | true | Full | net10.0 |
| EricksonLopez.Messaging.Generators | false | false | NotApplicable | netstandard2.0 |
| EricksonLopez.Messaging.Analyzers | false | false | NotApplicable | netstandard2.0 |
| EricksonLopez.Messaging.Idempotency | true | true | Full | net10.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
- EricksonLopez.Messaging.Idempotency→ EricksonLopez.Idempotency.Abstractions (EricksonLopez.Idempotency)
Verified External NuGet Dependencies (13)
13. Configuration & DI Registration Summary#
Verified DI & Configuration Entry Points
MessagingHealthCheckExtensions.AddMessagingHealthCheckRegisters a transient `MessagingHealthCheck` in the service collection.
MessagingHealthCheckExtensions.AddMessagingLivenessCheckRegisters a transient `MessagingHealthCheck` configured specifically for process liveness probes.
MessagingHealthCheckExtensions.AddMessagingReadinessCheckRegisters a transient `MessagingHealthCheck` configured specifically for operational readiness probes.
MessageConsumer.AddDestinationAdds an additional destination queue or topic for subscription prior to starting the consumer.
MessagingEventsServiceCollectionExtensions.AddMessagingEventPublisherRegisters `MessagingEventPublisher` as the `IEventPublisher` implementation in the service container.
MessagingOptionsBuilder.AddCircuitBreakerAdds circuit breaker resilience middleware to the message processing pipeline.
MessagingOptionsBuilder.AddDeduplicationAdds message deduplication middleware to prevent repeated execution of duplicate messages based on message identity.
MessagingOptionsBuilder.AddExceptionHandlingAdds exception handling middleware that catches unhandled exceptions and converts them into `Result.Result` failures, preventing raw exceptions from escaping the pipeline.
MessagingOptionsBuilder.AddHandlerTimeoutAdds handler execution timeout middleware to the message processing pipeline using a configuration delegate.
MessagingOptionsBuilder.AddLoggingAdds 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.AddRetryAdds 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).
| Suite | Method | Runtime | Mean (ns) | Allocated (B) | Status |
|---|---|---|---|---|---|
| MessagingBenchmarks | Serialization_Serialize | .NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI | 73.08 | 96 | measured |
| MessagingBenchmarks | Deserialization_Deserialize | .NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI | 136.76 | 168 | measured |
| MessagingBenchmarks | Dispatch_Simple | .NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI | 263.16 | 592 | measured |
| MessagingBenchmarks | Publish_Message | .NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI | 287.34 | 520 | measured |
| MessagingBenchmarks | Send_Message | .NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI | 287.85 | 480 | measured |
| MessagingBenchmarks | Dispatch_WithDefaultPipeline | .NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI | 422.38 | 688 | measured |
| MessagingBenchmarks | Handler_ResolveTypeName | .NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI | 675.93 | 448 | measured |
| MessagingBenchmarks | Dispatch_CancelledPath | .NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI | 2,614.02 | 1,344 | measured |
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.
| Version | Source | Published Date | Summary |
|---|---|---|---|
| v2.0.0 ↗ | nuget | 2026-09-23 | Published EricksonLopez.Messaging 2.0.0 to NuGet.org. |
| v2.0.0 ↗ | github | 2026-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 ↗ | github | 2026-08-28 | Ecosystem 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 ↗ | nuget | 2026-08-28 | Published EricksonLopez.Messaging 1.0.0 to NuGet.org. |
16. Complementary & Related Libraries#
Libraries in the same tier, architectural layer, or directly paired via dependency edges.
17. Documentation, API Reference & Portal Links#
Conceptual Documentation (Starlight) →
Extracted XML API Reference →
25 namespaces · 95 types · 338 members
Ecosystem Dependency Map →
Learning Center & Handbook →
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