Stepping.Core 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Stepping.Core --version 1.0.0                
NuGet\Install-Package Stepping.Core -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="Stepping.Core" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Stepping.Core --version 1.0.0                
#r "nuget: Stepping.Core, 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.
// Install Stepping.Core as a Cake Addin
#addin nuget:?package=Stepping.Core&version=1.0.0

// Install Stepping.Core as a Cake Tool
#tool nuget:?package=Stepping.Core&version=1.0.0                

logo-white

Stepping.NET

build and test codecov NuGet NuGet Download

Stepping is a distributed BASE jobs implementation. You can use it as a workflow engine, event outbox/inbox, email/SMS sender, remote invoker, and more.

It can also work with a DB transaction and supports the multi-DB scenario. That means the jobs are ensured to be eventually done after the DB transactions commit. You don't need to worry about inconsistencies caused by the app crashes after the transaction commit but before the steps are executed.

The distributed transaction is based on DTM's 2-phase messaging pattern.

What are Job and Step in Stepping?

Job is a distributed transaction unit, and Step is a specific task inside a job.

A job contains some steps, and the TM will execute them in order. If step 1 fails, it will be retried until success, and then step 2 starts to execute.

Examples

The TM will eventually complete the added steps:

var job = await distributedJobFactory.CreateJobAsync();

job.AddStep(new CreateOrderStep(orderCreatingArgs));
job.AddStep<SendOrderCreatedEmailStep>();

await job.StartAsync();

The Steps document shows how to define a step.

If you want to execute the steps after a DB transaction commits and ensure they will eventually be done:

var db = serviceProvider.GetRequiredService<MyDbContext>(); // example for EF Core
await db.Database.BeginTransactionAsync();

var order = new Order(args);

db.Orders.Add(order);
await db.SaveChangesAsync();

var job = await distributedJobFactory.CreateJobAsync(new EfCoreSteppingDbContext(db));

job.AddStep(new SendOrderCreatedEmailStep(order));
job.AddStep(new SendOrderCreatedSmsStep(order));

await job.StartAsync(); // it will commit the DB transaction

Stepping supports EF Core, ADO.NET(coming soon), and MongoDB.

For details, please see the Usage document.

Installation

See the Installation document.

Supported Transaction Managers

Stepping requires transaction managers. You can choose an implementation you like.

DTM Server

DTM is a mature transaction manager you can use as the TM provider for Stepping. DTM allows you to get many other distributed transaction modes like SAGA, TCC, and XA.

See the DTM document.

Local-TM

Stepping provides a simple built-in TM implementation. It runs with your app as a local transaction manager. Which app starts a job should be the TM of this job.

See the Local-TM document.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Stepping.Core:

Package Downloads
Stepping.TmProviders.LocalTm.Core

Stepping is a distributed BASE jobs implementation. You can use it as a workflow engine, event outbox/inbox, email/SMS sender, remote invoker, and more.

Stepping.DbProviders.MongoDb

Stepping is a distributed BASE jobs implementation. You can use it as a workflow engine, event outbox/inbox, email/SMS sender, remote invoker, and more.

Stepping.TmProviders.Dtm.Grpc

Stepping is a distributed BASE jobs implementation. You can use it as a workflow engine, event outbox/inbox, email/SMS sender, remote invoker, and more.

Stepping.DbProviders.EfCore

Stepping is a distributed BASE jobs implementation. You can use it as a workflow engine, event outbox/inbox, email/SMS sender, remote invoker, and more.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.0 274 1/14/2024
1.2.0 599 4/6/2023
1.1.0 1,143 1/10/2023
1.0.0 1,231 9/18/2022