EricksonLopez.Processes
dotnet-processes · CQRS & Messaging
On this page (20 sections)
1. Identity, Tier & Maturity Profile#
2. Value Proposition & Problem Solved#
High-performance, zero-reflection Process Manager and distributed Saga orchestration engine for modern .NET. Native AOT-ready, OCC CAS, and multi-database persistence.
Long-lived stateful sagas often pin threads in memory or rely on coarse distributed locks, risking lost updates or incomplete compensation rollbacks.
3. Quick Install#
Primary package: 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. Verified Ecosystem Metrics#
Snapshot retrieved UTC: 2026-12-01
5. When to Use & When Not to Use#
When to use
- You orchestrate multi-step sagas and state machines using optimistic revision tokens, reverse-order compensations, and SQL persistence.
When NOT to use
- Your workflow completes inside a single local database transaction—use EricksonLopez.Transaction instead.
6. Core Capabilities & Design Invariants#
Optimistic Saga & LIFO Compensation
ProcessCoordinator<TState> coordinates transitions with monotonic Revision tokens and reverse-order compensations.
Multi-Database Stores & Analyzers
Adapters for PostgreSQL, SQL Server, MySQL, MariaDB, Oracle, SQLite, Outbox, Mediator, Events, plus PROC001/PROC002 analyzers.
7. Included NuGet Packages & Adapters#
| Package ID | Status | NuGet / Local | TFMs | AOT Status | Downloads | Description |
|---|---|---|---|---|---|---|
| EricksonLopez.ProcessesPrimary | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 381 | Core Process Manager and Saga execution engine, compensation runner, and correlation primitives for EricksonLopez.Processes. |
| EricksonLopez.Processes.Outbox | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 614 | Outbox pattern integration for EricksonLopez.Processes. Dispatches process effects reliably using transactional outbox storage. |
| EricksonLopez.Processes.Abstractions | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 535 | Pure abstractions, identifiers, state contracts, and store interfaces for EricksonLopez.Processes. |
| EricksonLopez.Processes.Testing | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 273 | Testing utilities, doubles, InMemory test store, and test harnesses for EricksonLopez.Processes. |
| EricksonLopez.Processes.Storage.PostgreSql | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 271 | High-performance PostgreSQL persistence provider for EricksonLopez.Processes using Npgsql and JSONB state storage. |
| EricksonLopez.Processes.Mediator | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 270 | In-process mediator dispatching integration for EricksonLopez.Processes. Bridges process manager effects to EricksonLopez.Mediator commands and notifications. |
| EricksonLopez.Processes.Storage.MariaDb | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 270 | High-performance MariaDB persistence provider for EricksonLopez.Processes using MySqlConnector and JSON state storage. |
| EricksonLopez.Processes.Storage.MySql | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 267 | High-performance MySQL persistence provider for EricksonLopez.Processes using MySqlConnector and JSON state storage. |
| EricksonLopez.Processes.Storage.Sqlite | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 264 | High-performance SQLite persistence provider for EricksonLopez.Processes using Microsoft.Data.Sqlite and JSON state storage. |
| EricksonLopez.Processes.Storage.Oracle | Published | 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 | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 260 | Microsoft.Extensions.DependencyInjection integration extensions for EricksonLopez.Processes. |
| EricksonLopez.Processes.SystemTextJson | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 256 | System.Text.Json AOT-compatible serialization helpers and converters for EricksonLopez.Processes. |
| EricksonLopez.Processes.Events | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 255 | Event dispatching integration for EricksonLopez.Processes. Bridges process manager effects to EricksonLopez.Events.Contracts event publishers. |
| EricksonLopez.Processes.Storage.SqlServer | Published | v2.0.0 / v3.0.0 | net10.0 | AOT: Full | 249 | High-performance SQL Server persistence provider for EricksonLopez.Processes using Microsoft.Data.SqlClient and JSON state storage. |
| EricksonLopez.Processes.AnalyzersAnalyzer / Generator | Published | v2.0.0 / v3.0.0 | netstandard2.0 | AOT: N/A (Analyzer/Legacy) | 257 | Roslyn analyzers for EricksonLopez.Processes: validates state machine completeness, unhandled transition compensation, and process definition invariants at compile time. |
| EricksonLopez.Processes.GeneratorAnalyzer / Generator | Published | v2.0.0 / v3.0.0 | netstandard2.0 | AOT: N/A (Analyzer/Legacy) | 250 | Roslyn source generator for EricksonLopez.Processes compile-time registration and metadata. |
8. Quick Start Code Example#
Grounded in verified public APIs from EricksonLopez.Processes. Compile with `<ImplicitUsings>disable</ImplicitUsings>` and explicit imports.
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. Architecture & Dependency Flow#
Rendering diagram…
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
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.Mediator | L2 | Compile-Time, NuGet Package |
| Upstream | EricksonLopez.Outbox | L3 | Adapter, NuGet Package |
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 & Native AOT / Trimming Matrix#
MSBuild `.csproj` inspection across 16 packages: 13 Full, 0 Partial, 1 Incompatible, 2 NotApplicable (analyzers/generators).
| Package ID | IsAotCompatible | EnableTrimAnalyzer | Verified AOT Status | 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. 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.Processes.Outbox→ EricksonLopez.Outbox (EricksonLopez.Outbox)
Verified External NuGet Dependencies (7)
13. Configuration & DI Registration Summary#
Verified DI & Configuration Entry Points
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.
Key Public Types & Contracts
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. 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 |
|---|---|---|---|---|---|
| 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. 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-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. 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 →
18 namespaces · 107 types · 602 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#
- Runtime packages target net10.0 (Analyzers/Generator target netstandard2.0); Storage.Oracle sets IsAotCompatible=false while core and the other SQL stores are Full AOT.
- 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 (18 namespaces, 107 types, 602 members)
- MSBuild AOT / Trim Attributes
- 13 Full / 0 Partial / 1 Incompatible / 2 N/A
- BenchmarkDotNet Artifacts
- 5 total (5 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).