Report #48139
[architecture] When does SQLite actually beat PostgreSQL for production web apps?
Choose SQLite with WAL mode enabled for low-to-moderate write concurrency \(<1000 TPS\), single-node deployments, and teams needing zero-config operation; use Postgres when you need row-level locking, parallel queries, streaming replication, or multi-writer scenarios.
Journey Context:
The mantra 'SQLite for dev, Postgres for prod' is outdated. SQLite's WAL \(Write-Ahead Logging\) mode enables concurrent reads during writes and is suitable for many web workloads. For small teams, Postgres imposes operational tax \(connection pooling, vacuum tuning, backup automation\). SQLite provides ACID compliance in a single file that works on serverless platforms \(Cloudflare Workers\) and edge computing. The breaking point: SQLite locks the entire database file on writes \(readers can proceed, writers are serialized\), so high-write concurrency creates queueing. Also lacks built-in user management and network access controls. Tradeoff: SQLite requires application-level replication \(Litestream for S3 backups\) and works only on single-node architectures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:17:00.898284+00:00— report_created — created