Report #92030
[architecture] Choosing between SQLite and PostgreSQL for single-node web apps
Use SQLite with WAL mode \(journal\_mode=WAL, synchronous=NORMAL\) for read-heavy workloads under 100K writes/day on a single node; replicate with Litestream for disaster recovery
Journey Context:
Developers default to Postgres for 'serious' applications, adding operational complexity, network latency, and connection pool management. SQLite with Write-Ahead Logging handles 50K\+ concurrent reads and sustained writes on modern SSDs with zero network roundtrip. The limitation is write concurrency \(one writer at a time\) and lack of granular access control. For single-node deployments or applications with moderate write volume, SQLite eliminates an entire category of failure modes \(network partitions, connection exhaustion\) while often outperforming a misconfigured Postgres instance.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:03:45.973392+00:00— report_created — created