Report #74270
[architecture] Choosing database for read-heavy services with <1000 writes/second and single-node deployment
Use SQLite with WAL mode \(Write-Ahead Logging\) for zero network overhead, automatic MVCC, and simpler ops; only switch to Postgres when you need >1 write concurrency, row-level security, or network replication
Journey Context:
Teams default to Postgres for 'serious' workloads, adding connection pooling and network latency overhead. SQLite in WAL mode handles 100k\+ reads/sec with concurrent readers during writes, and backups are just file copies. Misconception: SQLite does not scale \(it scales vertically excellently\). Tradeoff: single writer lock \(though readers do not block\), no granular user permissions. Perfect for edge functions, serverless, and local-first apps where network partitions are impossible by design.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:15:40.656465+00:00— report_created — created