Reeve.Pipeline 1.0.0

dotnet add package Reeve.Pipeline --version 1.0.0
                    
NuGet\Install-Package Reeve.Pipeline -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Reeve.Pipeline" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Reeve.Pipeline" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Reeve.Pipeline" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Reeve.Pipeline --version 1.0.0
                    
#r "nuget: Reeve.Pipeline, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Reeve.Pipeline@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Reeve.Pipeline&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Reeve.Pipeline&version=1.0.0
                    
Install as a Cake Tool

Reeve.Pipeline

An ordered set of stages, each with an Up and a Down, walked one step per tick. It is a routing slip with compensation: a forward action, a compensating action recorded against it, and a LIFO unwind driven from a durable journal.

It has no persistence, no scheduler and no dependency injection, and that is the whole point. Mature .NET workflow engines such as WorkflowCore, Elsa and MassTransit Courier want to own the loop and the tables. If you already have a leader-elected loop and a row to write to, they cost you a second of each. This library costs you nothing: the package takes no dependency at all.

Quickstart

dotnet add package Reeve.Pipeline
var pipeline = Pipeline<MyContext>.Resolve(stages);

var tick = await new PipelineRunner<MyContext>(pipeline, TimeProvider.System)
    .AdvanceAsync(journalYouLoaded, context, ct);

SaveYourRow(tick.Journal);

Resolve the pipeline once, at startup. AdvanceAsync makes at most one stage call and returns a new journal. It never blocks waiting for a stage to finish: a stage that is still working says so, and the next tick asks again. The journal is yours to store, in your row and your format. The engine is a function from a journal to a journal, so its tests need no database and no clock.

What a stage declares

Id Stable, and written into the journal. Renaming one strands runs that are sitting on it.
Placement First, After(id) or Before(id), plus an ordinal for ties. Order is data, not registration order.
Reversibility Reversible, or IrreversibleOnceEntered(reason). The reason is written for an operator to read.
Budget A time limit plus FailAndCompensate or KeepWaitingAndReport.

Up and Down both return Working(detail), Done or Failed(reason).

The stage contract

  • Both Up and Down must be idempotent. A tick whose journal the caller failed to persist is replayed, and the library cannot make a stage safe to replay.
  • Down is called on a stage that failed part-way through Up, and must be safe on one that never started. That is the saga rule for a compensating action.
  • A stage that declares IrreversibleOnceEntered makes the run forward-only: a later failure is reported with the stage's reason instead of being unwound.

Documentation

Licensed under the MIT licence, see LICENSE.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net11.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Reeve.Pipeline:

Package Downloads
Reeve.Workloads.Abstractions

The workload vocabulary: the domain model, the ports a host implements, and the deployment manifest a plugin declares. The package every other Reeve.Workloads.* package and every consumer takes.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 87 11/25/2026