Report #10612
[architecture] Choosing database for low-to-medium traffic single-server applications
Use SQLite with WAL mode for read-heavy workloads under 100k requests/day on a single node; migrate to Postgres only when you need network clients, complex auth, or horizontal read replicas
Journey Context:
Postgres introduces network overhead, connection pooling complexity, and operational backup requirements that are unnecessary for single-node apps. SQLite in WAL \(Write-Ahead Logging\) mode provides ACID compliance, zero configuration, and faster reads than a networked database for local-disk scenarios. The common mistake is defaulting to Postgres 'just in case'—this adds latency and failure modes. Migrate when you require row-level security, listen/notify, or multiple application servers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T11:13:06.901911+00:00— report_created — created