Version v1.x
In-Memory
Available in
.NET
Node.js
Python
Process-local provider for tests and short-lived local development.
In-memory mode is useful for tests, demos, and fast local iteration.
It does not provide shared state across processes.
Registration
builder.Services.AddDurableStack(options =>
{
options.UseInMemory();
options.WorkerName = $"local-{Environment.ProcessId}";
});
import { createDurableStackInMemory } from "durablestack";
const { runtime } = await createDurableStackInMemory({
workerName: `local-${process.pid}`
});
Behavior
- No external database required.
- Job/run state exists only in process memory.
- Data is lost on process restart.
Important limitations
- Not durable across restarts.
- Not valid for distributed multi-worker execution.
- Default run retention is 1 hour (vs 24 hours for durable DB providers).