Report #62793
[architecture] When is SQLite better than PostgreSQL for production web apps
Use SQLite with WAL mode enabled when you have low write concurrency \(<1k writes/sec\), single-node deployment, and need zero-config replication via Litestream or rqlite for high availability.
Journey Context:
The default assumption is 'web app needs Postgres,' but this adds operational complexity \(connection pooling, schema migrations, backup scripts\). SQLite with Write-Ahead Logging \(WAL\) allows concurrent readers during writes. For read-heavy workloads with occasional writes \(CMS, blogs, dashboards\), SQLite eliminates network latency and deployment friction. The danger is high write concurrency or need for horizontal scaling; for that, use Postgres. The middle ground is Litestream \(streaming replication to S3\) for disaster recovery without clustering complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:53:05.278066+00:00— report_created — created