---
title: SQLite
description: Configure DurableStack with SQLite for local or single-instance durable scenarios.
order: 55
---

# SQLite

SQLite provides durable local persistence with minimal setup.

It is a strong fit for local development and small single-instance deployments.

## Registration

```csharp
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.
