Reeve.Pipeline
1.0.0
dotnet add package Reeve.Pipeline --version 1.0.0
NuGet\Install-Package Reeve.Pipeline -Version 1.0.0
<PackageReference Include="Reeve.Pipeline" Version="1.0.0" />
<PackageVersion Include="Reeve.Pipeline" Version="1.0.0" />
<PackageReference Include="Reeve.Pipeline" />
paket add Reeve.Pipeline --version 1.0.0
#r "nuget: Reeve.Pipeline, 1.0.0"
#:package Reeve.Pipeline@1.0.0
#addin nuget:?package=Reeve.Pipeline&version=1.0.0
#tool nuget:?package=Reeve.Pipeline&version=1.0.0
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
UpandDownmust be idempotent. A tick whose journal the caller failed to persist is replayed, and the library cannot make a stage safe to replay. Downis called on a stage that failed part-way throughUp, and must be safe on one that never started. That is the saga rule for a compensating action.- A stage that declares
IrreversibleOnceEnteredmakes the run forward-only: a later failure is reported with the stage's reason instead of being unwound.
Documentation
- Architecture: the tick model, ordering rules and invariants.
- Using it in a host: running a pipeline, handling tick results, upgrading.
- FAQ: replays, irreversible stages, budgets, renamed stages.
- Changelog.
Licensed under the MIT licence, see LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
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 |