Report #73656
[architecture] When does SQLite beat Postgres for production web services?
Use SQLite with WAL mode and -DSQLITE\_USE\_URI=1 for read-heavy, low-write services under 1M daily requests where deployment simplicity outweighs concurrent write needs; avoid if you have multiple write-heavy processes or need row-level security.
Journey Context:
Teams default to Postgres due to 'web scale' anxiety, but SQLite with WAL \(Write-Ahead Logging\) mode handles 10k\+ concurrent reads and isolated writes with zero network latency. The critical mistake is using default journal mode \(DELETE\) which locks the entire database on writes. SQLite excels in serverless edge deployments \(Cloudflare D1, LiteFS for fly.io\) where connection pooling and network partitions are harder than local disk constraints. Postgres is wrong when operational overhead \(backups, connection limits, migrations\) dominates application complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:13:40.776713+00:00— report_created — created