Backends¶
Acteon uses pluggable backends for both state storage and audit trail persistence. State and audit backends are independent — you can mix any state backend with any audit backend.
Backend Categories¶
State Backends¶
State backends store distributed locks, deduplication keys, event state, group state, and chain state.
| Backend | Consistency | Throughput | Use Case |
|---|---|---|---|
| Memory | Perfect | ~50,000/s | Development, testing |
| Redis | Strong | ~2,000/s | General purpose, most deployments |
| PostgreSQL | ACID | ~850/s | Strong consistency requirements |
| DynamoDB | Strong | ~340/s | AWS-native deployments |
Audit Backends¶
Audit backends store the searchable history of every action and its outcome.
| Backend | Best For | Features |
|---|---|---|
| Memory | Testing | No persistence |
| PostgreSQL | Production | ACID, indexed queries, TTL |
| ClickHouse | Analytics | Columnar, fast aggregations |
| Elasticsearch | Search | Full-text search, ILM |
Recommended Combinations¶
| Use Case | State | Audit | Why |
|---|---|---|---|
| Development | Memory | Memory | Zero dependencies |
| Production (general) | Redis | PostgreSQL | Fast state + reliable audit |
| Production (strict) | PostgreSQL | PostgreSQL | ACID everywhere |
| Analytics-heavy | Redis | ClickHouse | Fast state + analytics |
| Search-heavy | Redis | Elasticsearch | Fast state + full-text search |
| AWS-native | DynamoDB | PostgreSQL | Managed services |