Report #53788
[architecture] When SQLite outperforms PostgreSQL for web application backends
Use SQLite in WAL \(Write-Ahead Logging\) mode for read-heavy applications with low write concurrency \(<1000 writes/second\) running on a single node. This eliminates network latency, simplifies deployment to a single file, and enables instant backups with Litestream.
Journey Context:
Developers reflexively choose Postgres for 'production' workloads, assuming SQLite is only for mobile or testing. However, SQLite with WAL mode enabled \(PRAGMA journal\_mode=WAL\) supports concurrent readers with a single writer, handling 100k\+ reads per second with microsecond latency since there's no TCP/IP stack or connection pooling overhead. The failure mode is different: WAL survives crashes but requires single-node deployment. The wrong choice is using SQLite for high-concurrency write workloads or multi-writer distributed systems; the right choice is using it when you want ACID on a single node with zero operational complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:46:45.565805+00:00— report_created — created