EricksonLopez.Processes

dotnet-processes · CQRS & Messaging

On this page (20 sections)

1. Identity, Tier & Maturity Profile#

L4 Orchestration & SagasStableMaintenance: ActiveAOT: PartialMIT LicenseConfidence: HIGH
ApplicationInfrastructurenet10.0

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
Also published in this family:
EricksonLopez.Processes.OutboxEricksonLopez.Processes.AbstractionsEricksonLopez.Processes.TestingEricksonLopez.Processes.Storage.PostgreSqlEricksonLopez.Processes.MediatorEricksonLopez.Processes.Storage.MariaDb

4. Verified Ecosystem Metrics#

v2.0.0
NuGet Published Version
v3.0.0
Repo HEAD Version
4,935
NuGet Downloads
16
Packable Packages
602
Public API Members
5
Benchmark Rows (RyuJIT)

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 IDStatusNuGet / LocalTFMsAOT StatusDownloadsDescription
EricksonLopez.ProcessesPrimaryPublishedv2.0.0 / v3.0.0net10.0AOT: Full381Core Process Manager and Saga execution engine, compensation runner, and correlation primitives for EricksonLopez.Processes.
EricksonLopez.Processes.OutboxPublishedv2.0.0 / v3.0.0net10.0AOT: Full614Outbox pattern integration for EricksonLopez.Processes. Dispatches process effects reliably using transactional outbox storage.
EricksonLopez.Processes.AbstractionsPublishedv2.0.0 / v3.0.0net10.0AOT: Full535Pure abstractions, identifiers, state contracts, and store interfaces for EricksonLopez.Processes.
EricksonLopez.Processes.TestingPublishedv2.0.0 / v3.0.0net10.0AOT: Full273Testing utilities, doubles, InMemory test store, and test harnesses for EricksonLopez.Processes.
EricksonLopez.Processes.Storage.PostgreSqlPublishedv2.0.0 / v3.0.0net10.0AOT: Full271High-performance PostgreSQL persistence provider for EricksonLopez.Processes using Npgsql and JSONB state storage.
EricksonLopez.Processes.MediatorPublishedv2.0.0 / v3.0.0net10.0AOT: Full270In-process mediator dispatching integration for EricksonLopez.Processes. Bridges process manager effects to EricksonLopez.Mediator commands and notifications.
EricksonLopez.Processes.Storage.MariaDbPublishedv2.0.0 / v3.0.0net10.0AOT: Full270High-performance MariaDB persistence provider for EricksonLopez.Processes using MySqlConnector and JSON state storage.
EricksonLopez.Processes.Storage.MySqlPublishedv2.0.0 / v3.0.0net10.0AOT: Full267High-performance MySQL persistence provider for EricksonLopez.Processes using MySqlConnector and JSON state storage.
EricksonLopez.Processes.Storage.SqlitePublishedv2.0.0 / v3.0.0net10.0AOT: Full264High-performance SQLite persistence provider for EricksonLopez.Processes using Microsoft.Data.Sqlite and JSON state storage.
EricksonLopez.Processes.Storage.OraclePublishedv2.0.0 / v3.0.0net10.0AOT: Incompatible263High-performance Oracle persistence provider for EricksonLopez.Processes using Oracle.ManagedDataAccess.Core and JSON state storage.
EricksonLopez.Processes.DependencyInjectionPublishedv2.0.0 / v3.0.0net10.0AOT: Full260Microsoft.Extensions.DependencyInjection integration extensions for EricksonLopez.Processes.
EricksonLopez.Processes.SystemTextJsonPublishedv2.0.0 / v3.0.0net10.0AOT: Full256System.Text.Json AOT-compatible serialization helpers and converters for EricksonLopez.Processes.
EricksonLopez.Processes.EventsPublishedv2.0.0 / v3.0.0net10.0AOT: Full255Event dispatching integration for EricksonLopez.Processes. Bridges process manager effects to EricksonLopez.Events.Contracts event publishers.
EricksonLopez.Processes.Storage.SqlServerPublishedv2.0.0 / v3.0.0net10.0AOT: Full249High-performance SQL Server persistence provider for EricksonLopez.Processes using Microsoft.Data.SqlClient and JSON state storage.
EricksonLopez.Processes.AnalyzersAnalyzer / GeneratorPublishedv2.0.0 / v3.0.0netstandard2.0AOT: N/A (Analyzer/Legacy)257Roslyn analyzers for EricksonLopez.Processes: validates state machine completeness, unhandled transition compensation, and process definition invariants at compile time.
EricksonLopez.Processes.GeneratorAnalyzer / GeneratorPublishedv2.0.0 / v3.0.0netstandard2.0AOT: N/A (Analyzer/Legacy)250Roslyn 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#

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
EricksonLopez.Processes Dependency Topology3 upstream library dependencies and 0 downstream dependent libraries verified in dependencies.json.
View accessible text summary and structure

3 upstream library dependencies and 0 downstream dependent libraries verified in dependencies.json.

DirectionLibraryTierRelationship Kinds
UpstreamEricksonLopez.EventsL0Compile-Time, NuGet Package
UpstreamEricksonLopez.MediatorL2Compile-Time, NuGet Package
UpstreamEricksonLopez.OutboxL3Adapter, 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_outbox

10. Target Frameworks & Native AOT / Trimming Matrix#

MSBuild `.csproj` inspection across 16 packages: 13 Full, 0 Partial, 1 Incompatible, 2 NotApplicable (analyzers/generators).

Package IDIsAotCompatibleEnableTrimAnalyzerVerified AOT StatusTarget Frameworks
EricksonLopez.ProcessestruetrueFullnet10.0
EricksonLopez.Processes.OutboxtruetrueFullnet10.0
EricksonLopez.Processes.AbstractionstruetrueFullnet10.0
EricksonLopez.Processes.TestingtruetrueFullnet10.0
EricksonLopez.Processes.Storage.PostgreSqltruetrueFullnet10.0
EricksonLopez.Processes.MediatortruetrueFullnet10.0
EricksonLopez.Processes.Storage.MariaDbtruetrueFullnet10.0
EricksonLopez.Processes.Storage.MySqltruetrueFullnet10.0
EricksonLopez.Processes.Storage.SqlitetruetrueFullnet10.0
EricksonLopez.Processes.Storage.OraclefalsefalseIncompatiblenet10.0
EricksonLopez.Processes.DependencyInjectiontruetrueFullnet10.0
EricksonLopez.Processes.SystemTextJsontruetrueFullnet10.0
EricksonLopez.Processes.EventstruetrueFullnet10.0
EricksonLopez.Processes.Storage.SqlServertruetrueFullnet10.0
EricksonLopez.Processes.AnalyzersfalsefalseNotApplicablenetstandard2.0
EricksonLopez.Processes.GeneratorfalsefalseNotApplicablenetstandard2.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

Verified External NuGet Dependencies (7)

Microsoft.Data.SqlClientMicrosoft.Data.SqliteMicrosoft.Extensions.DependencyInjection.AbstractionsMicrosoft.Extensions.Logging.AbstractionsMySqlConnectorNpgsqlOracle.ManagedDataAccess.Core

13. Configuration & DI Registration Summary#

Verified DI & Configuration Entry Points

  • ProcessDefinitionBuilder<TState>.AddTransition

    Registers 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.AddProcesses

    Registers core process framework services, including the `ProcessRegistry`, into the service collection.

  • ProcessEventsServiceCollectionExtensions.AddProcessEventsDispatcher

    Registers 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).

Total rows: 5 · Measured: 5 · NA / Error: 0 · Suites: 1

Observed runtimes: .NET 10.0.11 X64 RyuJIT x86-64-v4

Observed CPUs: AMD Ryzen 7 9800X3D 4.70GHz, 1 CPU, 8 logical and 8 physical cores

SuiteMethodRuntimeMean (ns)Allocated (B)Status
ProcessBenchmarksBenchmark_SagaCompensation_ExecutionAsync.NET 10.0.11 X64 RyuJIT x86-64-v419.64136measured
ProcessBenchmarksBenchmark_ProcessId_NewId.NET 10.0.11 X64 RyuJIT x86-64-v460.040measured
ProcessBenchmarksBenchmark_SystemTextJson_Serialize.NET 10.0.11 X64 RyuJIT x86-64-v468.52104measured
ProcessBenchmarksBenchmark_SystemTextJson_Deserialize.NET 10.0.11 X64 RyuJIT x86-64-v4174.74256measured
ProcessBenchmarksBenchmark_ProcessCoordinator_ExecuteAsync.NET 10.0.11 X64 RyuJIT x86-64-v4350.96888measured

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.

VersionSourcePublished DateSummary
v2.0.0 ↗nuget2026-09-25Published EricksonLopez.Processes 2.0.0 to NuGet.org.
v2.0.0 ↗github2026-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 ↗github2026-08-31Ecosystem 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 ↗nuget2026-08-31Published EricksonLopez.Processes 1.0.0 to NuGet.org.

Libraries in the same tier, architectural layer, or directly paired via dependency edges.

17. Documentation, API Reference & Portal Links#

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

Search EricksonLopez.* Ecosystem

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