SQLite + Litestream can power a single-node bot with continuous backup; Postgres wins for multi-writer webhook fleets and richer ops tooling.
Checklist
- SQLite when one writer is enough
- Postgres for horizontal webhook replicas
- Test restore from backups either way
- Encrypt backup artifacts
When to choose what
Write the decision down with a revisit date. Re-evaluate when latency, cost or ops load changes.
Related
Frequently asked questions
Is this exhaustive?
No. It is a practical starting point; verify details in official docs before production.