EricksonLopez.Messaging

dotnet-messaging · Mensajería y Eventos

En esta página (20 secciones)

1. Identidad, Nivel y Perfil de Madurez#

L3 Persistencia e IntegracionesEstableMantenimiento: ActivoAOT: ParcialLicencia MITConfianza: HIGH
Infrastructurenet10.0

2. Propuesta de Valor y Problema que Resuelve#

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

Los buses de mensajes con reflexión escanean ensamblados al inicio, lanzan excepciones en rechazos de negocio y filtran detalles del broker en los contratos.

3. Instalación Rápida#

Paquete principal: EricksonLopez.Messaging

dotnet add package EricksonLopez.Messaging --version 2.0.0
También publicado en esta familia:
EricksonLopez.Messaging.AbstractionsEricksonLopez.Messaging.OpenTelemetryEricksonLopez.Messaging.KafkaEricksonLopez.Messaging.RabbitMQEricksonLopez.Messaging.EventsEricksonLopez.Messaging.Testing

4. Métricas Verificadas del Ecosistema#

v2.0.0
Versión Publicada en NuGet
v3.0.0
Versión HEAD del Repo
3,379
Descargas en NuGet
12
Paquetes Empaquetables
338
Miembros Públicos de API
8
Filas Benchmark (RyuJIT)

Instantánea recuperada UTC: 2026-12-01

5. Cuándo Usar y Cuándo NO Usar#

Cuándo usar

  • Quieres contratos pub/sub en .NET 10 con Native AOT retornando ValueTask<Result> sobre In-Memory, RabbitMQ, Azure Service Bus, AWS SQS o Kafka.

Cuándo NO usar

  • Solo requieres persistencia atómica Outbox hacia broker desde transacción SQL; combina o usa EricksonLopez.Outbox.

6. Capacidades Principales e Invariantes de Diseño#

Transportes Multi-Broker Desacoplados

Soporta Channels en memoria, RabbitMQ, Azure Service Bus, AWS SQS y Apache Kafka con IBatchMessageTransport.

Middleware de Resiliencia y Analizadores

Circuit breaker, deduplicación, traducción de excepciones, health checks y analizadores Roslyn en compilación.

7. Paquetes NuGet y Adaptadores Incluidos#

ID del PaqueteEstadoNuGet / LocalTFMsEstado AOTDescargasDescripción
EricksonLopez.MessagingPrincipalPublicadov2.0.0 / v3.0.0net10.0AOT: Completo399High-performance, low-allocation, Native AOT-first distributed messaging framework for .NET 10+ ecosystem.
EricksonLopez.Messaging.AbstractionsPublicadov2.0.0 / v3.0.0net10.0AOT: Completo435Pure abstractions and contracts for the EricksonLopez.Messaging distributed messaging framework. Provides IMessagePublisher, IMessageConsumer, and message contracts without infrastructure dependencies.
EricksonLopez.Messaging.OpenTelemetryPublicadov2.0.0 / v3.0.0net10.0AOT: Completo307OpenTelemetry instrumentation and Semantic Conventions v1.26+ support for EricksonLopez.Messaging.
EricksonLopez.Messaging.KafkaPublicadov2.0.0 / v3.0.0net10.0AOT: Incompatible292Apache Kafka message transport for EricksonLopez.Messaging ecosystem.
EricksonLopez.Messaging.RabbitMQPublicadov2.0.0 / v3.0.0net10.0AOT: Completo284RabbitMQ transport implementation for EricksonLopez.Messaging ecosystem.
EricksonLopez.Messaging.EventsPublicadov2.0.0 / v3.0.0net10.0AOT: Completo283Transport bridge for EricksonLopez.Events. Implements IEventPublisher backed by EricksonLopez.Messaging.Abstractions for distributed event dispatching across brokers.
EricksonLopez.Messaging.TestingPublicadov2.0.0 / v3.0.0net10.0AOT: Completo282Testing utilities for EricksonLopez.Messaging — provides InMemoryTestHarness with published and consumed message tracking for unit and integration tests.
EricksonLopez.Messaging.AwsSqsPublicadov2.0.0 / v3.0.0net10.0AOT: Completo278AWS SQS message transport for EricksonLopez.Messaging ecosystem.
EricksonLopez.Messaging.AzureServiceBusPublicadov2.0.0 / v3.0.0net10.0AOT: Completo276Azure Service Bus transport implementation for EricksonLopez.Messaging ecosystem.
EricksonLopez.Messaging.GeneratorsAnalizador / GeneradorPublicadov2.0.0 / v3.0.0netstandard2.0AOT: N/A (Analizador/Legado)281Roslyn Incremental Source Generator for EricksonLopez.Messaging zero-reflection AOT dispatch and DI registration.
EricksonLopez.Messaging.AnalyzersAnalizador / GeneradorPublicadov2.0.0 / v3.0.0netstandard2.0AOT: N/A (Analizador/Legado)262Roslyn analyzers for EricksonLopez.Messaging architectural constraints, diagnostics, and code fixes.
EricksonLopez.Messaging.IdempotencyNo publicado— / v3.0.0net10.0AOT: Completo0Distributed idempotency and deduplication bridge for EricksonLopez.Messaging ecosystem integrating EricksonLopez.Idempotency.Abstractions.

8. Ejemplo Quick Start#

Basado en APIs públicas verificadas de EricksonLopez.Messaging. Compila con `<ImplicitUsings>disable</ImplicitUsings>` e importaciones explícitas.

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. Arquitectura y Flujo de Dependencias#

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
Topología de Dependencias de EricksonLopez.Messaging3 dependencias hacia librerías aguas arriba y 0 librerías dependientes aguas abajo verificadas en dependencies.json.
Ver descripción textual y tabla accesible

3 dependencias hacia librerías aguas arriba y 0 librerías dependientes aguas abajo verificadas en dependencies.json.

DirecciónLibreríaNivelTipos de Relación
Aguas arribaEricksonLopez.EventsL0Tiempo de compilación, Paquete NuGet
Aguas arribaEricksonLopez.ResultL0Tiempo de compilación, Paquete NuGet
Aguas arribaEricksonLopez.IdempotencyL2Adaptador
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 y Matriz Native AOT / Trimming#

Inspección MSBuild `.csproj` sobre 12 paquetes: 9 Full, 0 Partial, 1 Incompatible, 2 NotApplicable (analizadores/generadores).

ID del PaqueteIsAotCompatibleEnableTrimAnalyzerEstado AOT VerificadoTarget 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. Dependencias Aguas Arriba y Dependientes Aguas Abajo#

Dependencias Aguas Arriba (3)

Dependientes Aguas Abajo (0)

Ninguna otra librería EricksonLopez.* depende actualmente de esta familia.

12. Adaptadores Opcionales e Integraciones Externas#

Aristas de Adaptadores Internos y Paquetes de Integración

Dependencias NuGet Externas Verificadas (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. Resumen de Configuración y Registro en DI#

Puntos de Entrada DI y Configuración Verificados

  • 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.

Tipos Públicos y Contratos Clave

  • 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. Benchmarks de Rendimiento Verificados#

Todas las mediciones verificadas provienen estrictamente de `BenchmarkDotNet.Artifacts` ejecutados sobre .NET RyuJIT (existen 0 ejecuciones NativeAOT en esta instantánea).

Filas totales: 8 · Medidos: 8 · NA / Error: 0 · Suites: 1

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

CPUs observadas: Unknown processor

SuiteMétodoRuntimeMedia (ns)Asignado (B)Estado
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. Historial de Versiones y Estado NuGet vs Repositorio#

Desfase de versiones detectado: la última versión publicada en NuGet.org es v2.0.0, mientras el HEAD del repositorio local está en v3.0.0.

VersiónOrigenFecha de PublicaciónResumen
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.

Librerías en el mismo nivel, capa arquitectónica o vinculadas directamente mediante aristas de dependencia.

17. Documentación, API Reference y Enlaces del Portal#

Las páginas conceptuales por librería en Starlight se completan en M4; las páginas de API Reference en M3.2.

18. Repositorio Fuente, Licencia y Contribución#

Publicado bajo Licencia MIT. Todos los ensamblados cumplen los invariantes de compilación EricksonLopez.*: importaciones explícitas, firma fuerte (`EricksonLopez.snk`) y metadatos de autor en ASCII (`Erickson Lopez`).

19. Resolución de Problemas, Riesgos y Migración#

  • Apunta exclusivamente a net10.0 en los paquetes locales; verifica los indicadores AOT en los subpaquetes de Kafka y brokers cloud.
  • Desfase de versiones detectado: la última versión publicada en NuGet.org es v2.0.0, mientras el HEAD del repositorio local está en v3.0.0.

20. Evidencia de Calidad y Verificación#

Firma Fuerte (`EricksonLopez.snk`)
EricksonLopez.snk
`ImplicitUsings=disable`
disable
Extracción de Documentación XML
Verificado (25 namespaces, 95 tipos, 338 miembros)
Atributos MSBuild AOT / Trimming
9 Full / 0 Partial / 1 Incompatible / 2 N/A
Artefactos BenchmarkDotNet
8 total (8 measured, 0 na_error)

Límites Explícitos de Verificación y Alcance

  • Todas las mediciones verificadas provienen estrictamente de `BenchmarkDotNet.Artifacts` ejecutados sobre .NET RyuJIT (existen 0 ejecuciones NativeAOT en esta instantánea).
  • 1 no publicados

Buscar en el Ecosistema EricksonLopez.*

Escribe el nombre de una librería, ID de paquete NuGet, tipo .NET o concepto arquitectónico para buscar en el portal.