Skip to content

Search EricksonLopez.* Ecosystem

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

EricksonLopez.Messaging Overview

EricksonLopez.Messaging (2.0.0 on NuGet, L3, 3,379 downloads) provides typed distributed message publishing, multi-handler dispatch, middleware pipelines, schema upcasting, and broker transports with Native AOT JSON serialization.

  • Explicit [MessageType] & zero-reflection serialization (v2.0.0): NativeAotJsonSerializer dropped reflection fallback (DefaultJsonTypeInfoResolver removed in v2.0.0), and ELMSG002 enforces [MessageType("...")] on IMessage contracts.
  • Pluggable broker transports: Ships InMemoryMessageTransport by default alongside RabbitMQ, AzureServiceBus, AwsSqs, and Kafka (Kafka sets IsAotCompatible=false due to Confluent.Kafka / librdkafka).
  • Deterministic requeue & dead-lettering (v2.0.0): MessageConsumerOptions.UnhandledFailureAckResult defaults to TransportAckResult.NackRequeue with IDeadLetterQueue routing, concurrent SQS batching, and deterministic PartitionKey routing.
  • TFM note: Local .csproj (3.0.0 HEAD) targets net10.0 (netstandard2.0 for Analyzers/Generators), whereas published 2.0.0 NuGet packages targeted net8.0;net9.0;net10.0.
flowchart LR
Pub["IMessagePublisher"] --> Ser["NativeAotJsonSerializer"]
Ser --> Tr["IMessageTransport (InMemory / RabbitMQ / ServiceBus / SQS / Kafka)"]
Tr --> Cons["IMessageConsumer + MiddlewarePipeline"]
Cons --> Disp["IMessageDispatcher -> IMessageHandler<TMessage>"]
Messaging Publish, Middleware Pipeline, and Dispatch FlowIMessagePublisher serializes [MessageType] contracts via NativeAotJsonSerializer into IMessageTransport, while MessageConsumer executes middleware and dispatches to IMessageHandler instances.
View accessible text summary and structure

IMessagePublisher serializes [MessageType] contracts via NativeAotJsonSerializer into IMessageTransport, while MessageConsumer executes middleware and dispatches to IMessageHandler instances.

flowchart LR
Pub["IMessagePublisher"] --> Ser["NativeAotJsonSerializer"]
Ser --> Tr["IMessageTransport (InMemory / RabbitMQ / ServiceBus / SQS / Kafka)"]
Tr --> Cons["IMessageConsumer + MiddlewarePipeline"]
Cons --> Disp["IMessageDispatcher -> IMessageHandler<TMessage>"]

11 of 12 packages are published at 2.0.0 on NuGet (localVersion: 3.0.0 on disk), while EricksonLopez.Messaging.Idempotency remains unpublished (3.0.0 local only). Overall AOT status is Partial (9 Full, 1 Incompatible, 2 NotApplicable):

Package NuGet (2.0.0) AOT Status Role
EricksonLopez.Messaging Published (399 dl) Full Core dispatcher, consumer, publisher, middleware, InMemoryMessageTransport
EricksonLopez.Messaging.Abstractions Published (435 dl) Full IMessage, IMessageHandler<T>, [MessageType], MessageEnvelope<T>
EricksonLopez.Messaging.OpenTelemetry Published (307 dl) Full AddMessagingInstrumentation() (OpenTelemetry.Trace / OpenTelemetry.Metrics)
EricksonLopez.Messaging.RabbitMQ / AwsSqs / AzureServiceBus Published (284 / 278 / 276 dl) Full Broker transport implementations
EricksonLopez.Messaging.Events Published (283 dl) Full AddMessagingEventPublisher() domain event bridge
EricksonLopez.Messaging.Testing Published (282 dl) Full InMemoryTestHarness (PublishedMessages, ConsumedMessages)
EricksonLopez.Messaging.Kafka Published (292 dl) Incompatible IsAotCompatible=false (Confluent.Kafka / librdkafka native interop)
EricksonLopez.Messaging.Generators Published (281 dl) NotApplicable netstandard2.0 Roslyn generator (AddGeneratedMessagingHandlers())
EricksonLopez.Messaging.Analyzers Published (262 dl) NotApplicable netstandard2.0 Roslyn diagnostics (ELMSG002, 004, 005, 008, 010)
EricksonLopez.Messaging.Idempotency Unpublished Full Local 3.0.0 only (AddMessagingIdempotency -> IdempotencyStoreDeduplicationAdapter)

Measured directly from BenchmarkDotNet.Artifacts (8 measured rows, 0 na_error rows) in MessagingBenchmarks on .NET 10.0.11 X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI (no NativeAOT reports):

  • Serialization_Serialize: 73.08 ns / 96 B
  • Deserialization_Deserialize: 136.76 ns / 168 B
  • Dispatch_Simple: 263.16 ns / 592 B
  • Dispatch_WithDefaultPipeline: 422.38 ns / 688 B
  • Dispatch_CancelledPath: 2,614.02 ns / 1,344 B
  • Handler_ResolveTypeName: 675.93 ns / 448 B
  • Publish_Message: 287.34 ns / 520 B
  • Send_Message: 287.85 ns / 480 B