Report #82527
[architecture] When should I choose SQLite over PostgreSQL for production workloads?
Use SQLite with WAL \(Write-Ahead Logging\) mode enabled when you have fewer than 1000 writes per second, operate on a single node, and require many concurrent reads; it outperforms network-based PostgreSQL on read-heavy workloads while eliminating operational complexity.
Journey Context:
Developers reflexively choose PostgreSQL for 'production', adding network latency, connection pool management, and backup complexity. SQLite is dismissed as a 'dev database', but WAL mode \(available since 2010\) allows readers to not block writers and vice versa. For single-node microservices, edge functions, or read-heavy caches, SQLite is faster \(in-process, no IPC\), simpler \(single file backup\), and more reliable than a remote PostgreSQL instance. It fails at high write concurrency \(multi-writer lock contention\) or distributed setups.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:06:35.840843+00:00— report_created — created