Report #12903
[architecture] Postgres operational overhead for low-write single-node applications
Use SQLite in WAL \(Write-Ahead Logging\) mode with 'PRAGMA journal\_mode=WAL' when: single-node deployment, read-heavy workload, write concurrency < 1000 TPS, and zero-downtime backups \(e.g., Litestream\) are acceptable.
Journey Context:
Teams default to Postgres via Docker for simple apps, adding TCP overhead, connection pooling complexity \(PgBouncer\), and operational burden \(VACUUM, replication\). SQLite in WAL mode allows readers to not block writers and achieves 50k\+ reads/sec with microsecond latency on local SSD. It eliminates network latency entirely. The constraint: single-node only \(no horizontal read replicas\), and backups require file-system snapshots or tools like Litestream \(streaming replication\). Wrong for high-write concurrency \(>1000 TPS\) or multi-node requirements.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:17:03.258515+00:00— report_created — created