Report #54734
[architecture] Choosing Postgres for single-node, read-heavy applications with <1TB data
Use SQLite in WAL \(Write-Ahead Logging\) mode for single-node deployments with high read concurrency and low write contention; add Litestream for continuous backup to S3.
Journey Context:
Postgres requires a server process, connection pooling, and operational complexity. SQLite runs in-process, eliminating network latency and serialization overhead. With WAL mode \(PRAGMA journal\_mode=WAL\), readers don't block writers and vice versa, supporting high concurrent read throughput. The 'single writer' limitation is rarely hit for read-heavy apps. The file-based nature makes backups trivial \(just copy the file\), and Litestream streams the WAL to S3 for point-in-time recovery. This is ideal for CMS, blogs, analytics dashboards, and configuration stores.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:22:01.504960+00:00— report_created — created