EricksonLopez.Processes
dotnet-processes · CQRS y Mensajería
En esta página (20 secciones)
1. Identidad, Nivel y Perfil de Madurez#
2. Propuesta de Valor y Problema que Resuelve#
High-performance, zero-reflection Process Manager and distributed Saga orchestration engine for modern .NET. Native AOT-ready, OCC CAS, and multi-database persistence.
Las sagas de larga duración suelen retener estado en memoria o usar bloqueos distribuidos pesados, arriesgando actualizaciones perdidas o compensaciones incompletas.
3. Instalación Rápida#
Paquete principal: EricksonLopez.Processes
dotnet add package EricksonLopez.Processes --version 2.0.0<PackageReference Include="EricksonLopez.Processes" Version="2.0.0" /><PackageVersion Include="EricksonLopez.Processes" Version="2.0.0" />4. Métricas Verificadas del Ecosistema#
Instantánea recuperada UTC: 2026-12-01
5. Cuándo Usar y Cuándo NO Usar#
Cuándo usar
- Orquestas sagas multipaso y máquinas de estado con tokens de revisión optimista, compensación en orden inverso y persistencia SQL.
Cuándo NO usar
- Tu flujo se completa dentro de una única transacción local de base de datos; usa EricksonLopez.Transaction.
6. Capacidades Principales e Invariantes de Diseño#
Sagas Optimistas y Compensación LIFO
ProcessCoordinator<TState> coordina transiciones con tokens Revision monotónicos y compensaciones en orden inverso.
Almacenes Multi-Motor y Analizadores
Adaptadores para PostgreSQL, SQL Server, MySQL, MariaDB, Oracle, SQLite, Outbox, Mediator, Events y analizadores PROC001/PROC002.
7. Paquetes NuGet y Adaptadores Incluidos#
| ID del Paquete | Estado | NuGet / Local | TFMs | Estado AOT | Descargas | Descripción |
|---|---|---|---|---|---|---|
| EricksonLopez.ProcessesPrincipal | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 381 | Core Process Manager and Saga execution engine, compensation runner, and correlation primitives for EricksonLopez.Processes. |
| EricksonLopez.Processes.Outbox | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 614 | Outbox pattern integration for EricksonLopez.Processes. Dispatches process effects reliably using transactional outbox storage. |
| EricksonLopez.Processes.Abstractions | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 535 | Pure abstractions, identifiers, state contracts, and store interfaces for EricksonLopez.Processes. |
| EricksonLopez.Processes.Testing | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 273 | Testing utilities, doubles, InMemory test store, and test harnesses for EricksonLopez.Processes. |
| EricksonLopez.Processes.Storage.PostgreSql | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 271 | High-performance PostgreSQL persistence provider for EricksonLopez.Processes using Npgsql and JSONB state storage. |
| EricksonLopez.Processes.Mediator | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 270 | In-process mediator dispatching integration for EricksonLopez.Processes. Bridges process manager effects to EricksonLopez.Mediator commands and notifications. |
| EricksonLopez.Processes.Storage.MariaDb | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 270 | High-performance MariaDB persistence provider for EricksonLopez.Processes using MySqlConnector and JSON state storage. |
| EricksonLopez.Processes.Storage.MySql | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 267 | High-performance MySQL persistence provider for EricksonLopez.Processes using MySqlConnector and JSON state storage. |
| EricksonLopez.Processes.Storage.Sqlite | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 264 | High-performance SQLite persistence provider for EricksonLopez.Processes using Microsoft.Data.Sqlite and JSON state storage. |
| EricksonLopez.Processes.Storage.Oracle | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Incompatible | 263 | High-performance Oracle persistence provider for EricksonLopez.Processes using Oracle.ManagedDataAccess.Core and JSON state storage. |
| EricksonLopez.Processes.DependencyInjection | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 260 | Microsoft.Extensions.DependencyInjection integration extensions for EricksonLopez.Processes. |
| EricksonLopez.Processes.SystemTextJson | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 256 | System.Text.Json AOT-compatible serialization helpers and converters for EricksonLopez.Processes. |
| EricksonLopez.Processes.Events | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 255 | Event dispatching integration for EricksonLopez.Processes. Bridges process manager effects to EricksonLopez.Events.Contracts event publishers. |
| EricksonLopez.Processes.Storage.SqlServer | Publicado | v2.0.0 / v3.0.0 | net10.0 | AOT: Completo | 249 | High-performance SQL Server persistence provider for EricksonLopez.Processes using Microsoft.Data.SqlClient and JSON state storage. |
| EricksonLopez.Processes.AnalyzersAnalizador / Generador | Publicado | v2.0.0 / v3.0.0 | netstandard2.0 | AOT: N/A (Analizador/Legado) | 257 | Roslyn analyzers for EricksonLopez.Processes: validates state machine completeness, unhandled transition compensation, and process definition invariants at compile time. |
| EricksonLopez.Processes.GeneratorAnalizador / Generador | Publicado | v2.0.0 / v3.0.0 | netstandard2.0 | AOT: N/A (Analizador/Legado) | 250 | Roslyn source generator for EricksonLopez.Processes compile-time registration and metadata. |
8. Ejemplo Quick Start#
Basado en APIs públicas verificadas de EricksonLopez.Processes. Compila con `<ImplicitUsings>disable</ImplicitUsings>` e importaciones explícitas.
using System;
using EricksonLopez.Processes.Abstractions;
public sealed record OrderSagaState(
string OrderId,
string CustomerId,
decimal Amount,
bool PaymentCaptured,
bool InventoryReserved) : IProcessState;
public sealed record OrderPlacedEvent(Guid OrderId, string CustomerId, decimal Amount);
public sealed record CapturePaymentCommand(Guid OrderId, decimal Amount);9. Arquitectura y Flujo de Dependencias#
Renderizando diagrama…
flowchart LR lib_processes["EricksonLopez.Processes (L4)"] lib_events["EricksonLopez.Events (L0)"] lib_processes --> lib_events lib_mediator["EricksonLopez.Mediator (L2)"] lib_processes --> lib_mediator lib_outbox["EricksonLopez.Outbox (L3)"] lib_processes -.-> lib_outbox
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ón | Librería | Nivel | Tipos de Relación |
|---|---|---|---|
| Aguas arriba | EricksonLopez.Events | L0 | Tiempo de compilación, Paquete NuGet |
| Aguas arriba | EricksonLopez.Mediator | L2 | Tiempo de compilación, Paquete NuGet |
| Aguas arriba | EricksonLopez.Outbox | L3 | Adaptador, Paquete NuGet |
flowchart LR
lib_processes["EricksonLopez.Processes (L4)"]
lib_events["EricksonLopez.Events (L0)"]
lib_processes --> lib_events
lib_mediator["EricksonLopez.Mediator (L2)"]
lib_processes --> lib_mediator
lib_outbox["EricksonLopez.Outbox (L3)"]
lib_processes -.-> lib_outbox10. Target Frameworks y Matriz Native AOT / Trimming#
Inspección MSBuild `.csproj` sobre 16 paquetes: 13 Full, 0 Partial, 1 Incompatible, 2 NotApplicable (analizadores/generadores).
| ID del Paquete | IsAotCompatible | EnableTrimAnalyzer | Estado AOT Verificado | Target Frameworks |
|---|---|---|---|---|
| EricksonLopez.Processes | true | true | Full | net10.0 |
| EricksonLopez.Processes.Outbox | true | true | Full | net10.0 |
| EricksonLopez.Processes.Abstractions | true | true | Full | net10.0 |
| EricksonLopez.Processes.Testing | true | true | Full | net10.0 |
| EricksonLopez.Processes.Storage.PostgreSql | true | true | Full | net10.0 |
| EricksonLopez.Processes.Mediator | true | true | Full | net10.0 |
| EricksonLopez.Processes.Storage.MariaDb | true | true | Full | net10.0 |
| EricksonLopez.Processes.Storage.MySql | true | true | Full | net10.0 |
| EricksonLopez.Processes.Storage.Sqlite | true | true | Full | net10.0 |
| EricksonLopez.Processes.Storage.Oracle | false | false | Incompatible | net10.0 |
| EricksonLopez.Processes.DependencyInjection | true | true | Full | net10.0 |
| EricksonLopez.Processes.SystemTextJson | true | true | Full | net10.0 |
| EricksonLopez.Processes.Events | true | true | Full | net10.0 |
| EricksonLopez.Processes.Storage.SqlServer | true | true | Full | net10.0 |
| EricksonLopez.Processes.Analyzers | false | false | NotApplicable | netstandard2.0 |
| EricksonLopez.Processes.Generator | false | false | NotApplicable | netstandard2.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
- EricksonLopez.Processes.Outbox→ EricksonLopez.Outbox (EricksonLopez.Outbox)
Dependencias NuGet Externas Verificadas (7)
13. Resumen de Configuración y Registro en DI#
Puntos de Entrada DI y Configuración Verificados
ProcessDefinitionBuilder<TState>.AddTransitionRegisters a directed transition edge between two process lifecycle statuses.
ProcessStateMigrationPipelineBuilder<TCurrentState>.AddStep<TNextState>Appends a typed `IProcessStateMigrator<TFrom, TTo>` step to the pipeline.
ServiceCollectionExtensions.AddProcessCoordinator<TState>Registers a `ProcessCoordinator<TState>` for the specified domain state schema.
ServiceCollectionExtensions.AddProcessesRegisters core process framework services, including the `ProcessRegistry`, into the service collection.
ProcessEventsServiceCollectionExtensions.AddProcessEventsDispatcherRegisters the `EventProcessDispatcher` implementation of `IEventProcessDispatcher` into the service collection.
MediatorProcessDispatcherOptions.MapCommand<TCommand, TResponse>Registers a typed adapter that maps a domain command payload of type `TCommand` to an `ICommand<TResponse>` with an arbitrary response type.
MediatorProcessDispatcherOptions.MapCommand<TCommand>Registers a typed adapter that maps a domain command payload of type `TCommand` to an `ICommand<TResponse>` returning `bool`.
MediatorProcessDispatcherOptions.MapNotification<TEvent>Registers a typed adapter that maps a domain event or timeout payload of type `TEvent` to an `INotification`.
ProcessMariaDbServiceCollectionExtensions.AddMariaDbProcessStore<TState>Registers `MariaDbProcessStore<TState>` as the implementation of `IProcessStore<TState>` in the service collection.
ProcessMySqlServiceCollectionExtensions.AddMySqlProcessStore<TState>Registers `MySqlProcessStore<TState>` as the implementation of `IProcessStore<TState>` in the service collection.
ProcessOracleServiceCollectionExtensions.AddOracleProcessStore<TState>Registers `OracleProcessStore<TState>` as the implementation of `IProcessStore<TState>` in the service collection.
ProcessPostgreSqlServiceCollectionExtensions.AddPostgreSqlProcessStore<TState>Registers `PostgreSqlProcessStore<TState>` as the implementation of `IProcessStore<TState>` in the service collection.
Tipos Públicos y Contratos Clave
EricksonLopez.Processes.IProcessRegistry (interface)Defines a registry for storing and resolving process definitions, handlers, and correlation extractors.
EricksonLopez.Processes.ProcessCoordinatorOptions (class)Provides configuration options for the `ProcessCoordinator<TState>` execution pipeline.
EricksonLopez.Processes.ProcessCoordinator`1 (class)Coordinates process lifecycle execution, handler invocation, optimistic concurrency retries, and persistence.
EricksonLopez.Processes.ProcessDefinitionBuilder`1 (class)Provides a fluent builder for defining and validating process finite-state machine transition graphs at startup.
EricksonLopez.Processes.ProcessDefinition`1 (class)Represents a validated finite-state machine graph definition for a process type.
EricksonLopez.Processes.ProcessDiagnostics (class)Provides standard observability instruments for process execution and tracing.
EricksonLopez.Processes.ProcessFailureCategory (enum)Defines strictly bounded failure categories for OpenTelemetry metric dimensions to prevent cardinality explosion and credential leakage.
EricksonLopez.Processes.ProcessRegistry (class)Provides a thread-safe registry holding registered process types and versions.
EricksonLopez.Processes.ProcessStateMigrationPipeline (class)Provides fluent factory methods to compose multi-step schema migration pipelines into a single migrator.
EricksonLopez.Processes.ProcessStateMigrationPipelineBuilder`1 (class)Constructs sequential, deterministic state migration pipelines.
EricksonLopez.Processes.ProcessTransitionEdge (record)Represents a directed state transition edge in a process finite-state machine definition.
EricksonLopez.Processes.Abstractions.CausationId (record)Represents a strongly typed identifier for the direct trigger or parent message that caused an action.
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).
| Suite | Método | Runtime | Media (ns) | Asignado (B) | Estado |
|---|---|---|---|---|---|
| ProcessBenchmarks | Benchmark_SagaCompensation_ExecutionAsync | .NET 10.0.11 X64 RyuJIT x86-64-v4 | 19.64 | 136 | measured |
| ProcessBenchmarks | Benchmark_ProcessId_NewId | .NET 10.0.11 X64 RyuJIT x86-64-v4 | 60.04 | 0 | measured |
| ProcessBenchmarks | Benchmark_SystemTextJson_Serialize | .NET 10.0.11 X64 RyuJIT x86-64-v4 | 68.52 | 104 | measured |
| ProcessBenchmarks | Benchmark_SystemTextJson_Deserialize | .NET 10.0.11 X64 RyuJIT x86-64-v4 | 174.74 | 256 | measured |
| ProcessBenchmarks | Benchmark_ProcessCoordinator_ExecuteAsync | .NET 10.0.11 X64 RyuJIT x86-64-v4 | 350.96 | 888 | measured |
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ón | Origen | Fecha de Publicación | Resumen |
|---|---|---|---|
| v2.0.0 ↗ | nuget | 2026-09-25 | Published EricksonLopez.Processes 2.0.0 to NuGet.org. |
| v2.0.0 ↗ | github | 2026-09-25 | [2.0.0](https://github.com/ericksonlopezf/dotnet-processes/compare/v1.0.0...v2.0.0) (2026-09-25) ⚠ BREAKING CHANGES * enhance process engine lifecycle, ABI stability, and relational storage security ✨ Features * enhance process engine lifecycle, ABI stability, and relational storage security ([5e3f534](https://github.com/ericksonlopezf/dotnet-processes/commit/5e3f5341f8767dd9ed2b63bf261f5d8041b... |
| v1.0.0 ↗ | github | 2026-08-31 | Ecosystem Packages in this release | Package | Version | |---------|---------| | `EricksonLopez.Processes.Abstractions` | `1.0.0` | | `EricksonLopez.Processes.DependencyInjection` | `1.0.0` | | `EricksonLopez.Processes.Generator` | `1.0.0` | | `EricksonLopez.Processes.SystemTextJson` | `1.0.0` | | `EricksonLopez.Processes.Testing` | `1.0.0` | | `EricksonLopez.Processes.Outbox` | `1.0.0` | | `Er... |
| v1.0.0 ↗ | nuget | 2026-08-31 | Published EricksonLopez.Processes 1.0.0 to NuGet.org. |
16. Librerías Complementarias y Relacionadas#
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#
Documentación Conceptual (Starlight) →
Referencia de API XML Extraída →
18 namespaces · 107 tipos · 602 miembros
Mapa de Dependencias del Ecosistema →
Centro de Aprendizaje y Manual →
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#
- Los paquetes runtime apuntan a net10.0 (Analyzers/Generator a netstandard2.0); Storage.Oracle declara IsAotCompatible=false mientras el núcleo y los demás stores SQL son Full AOT.
- 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 (18 namespaces, 107 tipos, 602 miembros)
- Atributos MSBuild AOT / Trimming
- 13 Full / 0 Partial / 1 Incompatible / 2 N/A
- Artefactos BenchmarkDotNet
- 5 total (5 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).