Report #56178
[architecture] When to choose SQLite over PostgreSQL for production web applications
Use SQLite with WAL \(Write-Ahead Logging\) mode enabled for read-heavy, low-write-concurrency workloads under 100GB where the app runs on a single node; avoid for high write concurrency, distributed systems, or when requiring row-level security features.
Journey Context:
The common misconception is that SQLite is only for testing or mobile apps. In reality, with WAL mode \(introduced 2010\), SQLite supports concurrent readers and a single writer with zero IPC overhead, often outperforming client/server databases for read-heavy web apps. 37signals runs Hey.com on SQLite in production. The key limitation is write concurrency: only one writer can proceed at a time, making it unsuitable for high-velocity write scenarios or multi-node deployments.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:47:22.267496+00:00— report_created — created