Version v1.0 · dotnet
SQLite
Configure DurableStack with SQLite for local or single-instance durable scenarios.
SQLite
SQLite provides durable local persistence with minimal setup.
It is a strong fit for local development and small single-instance deployments.
Registration
using DurableStack.Hosting.DependencyInjection;
var connectionString = "Data Source=durable_stack.db";
builder.Services.AddDurableStackSqlite(connectionString, options =>
{
options.WorkerName = $"local-api-{Environment.MachineName}-{Environment.ProcessId}";
});
Operational notes
- Use persistent volume storage if data must survive container restarts.
- SQLite is generally not the first choice for high-scale distributed clusters.
- Keep retention/pruning enabled to avoid local file growth.