Acta. Durable execution for .NET

get started · five minutes

Run your first durable job in five minutes.

ASP.NET Core, embedded SQLite, one job, and the Acta dashboard. No Docker, no database server, nothing to provision; the only prerequisite is the .NET 10 or .NET 11 SDK. Two equally good doors: hand a prompt to your AI agent, or type it yourself.

New to Acta and want the why behind every line? Learn Acta: the first-time tutorial

Not sure it fits? When Acta is the right choice, and when another tool is

1.0.0-rc.15 is a release candidate: it needs a fresh database, 1.0.0 may still need one more, and from 1.0.0 every upgrade is a migration. Runs on .NET 10 and .NET 11 with PostgreSQL 17+, SQL Server 2019+, or SQLite 3.51+.

Door one

Create it with AI.

Copy a prompt, paste it into your coding agent, done. The agent finds everything it needs from useacta.net; you never need to know how.

Prompt · short form
Use useacta.net to add Acta here.

Create a worker, one job, and the dashboard. Job description: [what the job should do]

Build and run it when finished. Run the job once and show me its job ref, its jobs explain output, and the dashboard URL.

Working in an existing codebase, or want the guardrails spelled out? The long form:

Prompt · long form
Add Acta to this project by following useacta.net.

If this is an empty directory, create a minimal ASP.NET Core Acta app using SQLite, with one worker, one job, and the dashboard at /acta.

If this is an existing application, inspect its hosting and database setup first, preserve its architecture, and add Acta appropriately.

Detect whether the producer and worker are in the same assembly or separate assemblies and use the correct Acta registration model.

Create one job for this description: [describe the job here]

Name the namespace for the work this app owns, and tell me the name you chose: it is permanent.

Restore, build, start the app, and run the job once. Show me its job ref, its jobs explain output, and the dashboard URL. Only enable automatic migrations for local development.

Door two

By hand: three commands, one file.

Terminal
dotnet new web -n Shipping && cd Shipping
dotnet add package Acta.Sqlite --prerelease
dotnet add package Acta.Dashboard --prerelease

Replace Program.cs with this, all of it:

Program.cs
using Shipping;                 // the generated manifest lands in your project's root namespace
using Acta;
using Acta.Dashboard;
using Acta.Sqlite;

var builder = WebApplication.CreateBuilder(args);

builder.Services.UseActa(j =>
{
    j.UseSqlite(sqlite =>
    {
        sqlite.ConnectionString = "Data Source=acta-local.db";
        sqlite.MigrateOnStartup = true;   // local development only; in production a deploy step runs "jobs migrate"
    });
    j.Run<ShippingJobs>("shipping");
});

var app = builder.Build();
app.MapActa("/acta");           // dashboard + JSON API; local-only by default, controls disabled

// Your own endpoint enqueues: the job is a durable row before the response goes out.
app.MapPost("/orders/{orderId:int}", async (int orderId, IJobs jobs) =>
{
    var job = await jobs.EnqueueAsync(new ShipOrder(orderId));
    return Results.Accepted("/acta", new { job.JobRef });
});

app.Run();

public sealed record ShipOrder(int OrderId);

public static class ShippingHandlers
{
    [Job("ship-order")]
    public static void Handle(ShipOrder input) => Console.WriteLine($"Shipping order {input.OrderId}");
}

dotnet run, then enqueue from a second terminal on the port it printed:

Output
curl -X POST http://localhost:5090/orders/1042
# the app prints: Shipping order 1042

The endpoint answers 202 Accepted with the job's ref once the row is stored. Open /acta on the same port: the Jobs screen lists ship-order as succeeded. Ctrl+C stops the app.

Run a job later with ScheduleAsync(input, TimeSpan.FromMinutes(10)), and follow one with await job.WaitAsync(): its timeout, 30 seconds by default, stops the wait, never the job. A recurring schedule is [Schedule].

ShippingJobs is generated: the last segment of your project's root namespace plus Jobs. Name the project Orders and it is OrdersJobs.

"shipping" is the namespace, and it is permanent: every job row, the dashboard and the CLI carry it, and there is no rename. Choose it once, for the work the app owns, such as billing, not for an environment or a version.

The job was a row in acta-local.db before it was a method call. Swap the package and the using for Acta.Postgres or Acta.SqlServer and UseSqlite for UsePostgres or UseSqlServer, point the connection string at your server, and nothing else changes.

Existing app?

Add Acta to what you already run.

Keep your host and your database. Add the provider package that matches your server (Acta.Postgres, Acta.SqlServer, or Acta.Sqlite), register with your existing connection string, and put one real job behind [Job("...")]. Handlers resolve through DI, so your services inject as they always did. Production schema comes from a deploy step that runs jobs migrate, never from startup migration.

Separate API and worker processes? The worker calls Run<TManifest>; a process that only enqueues calls Reference<TManifest>. See Wiring shape.

Next

What to learn after the first job.

Also: how Acta works·the developer guide·llms.txt, for your agent