Report #8502
[architecture] When is SQLite sufficient instead of PostgreSQL for production web services
Use SQLite when: write concurrency <1000 TPS, no replicas needed, all app servers share a fast NVMe disk \(or single instance\), WAL mode is enabled, and you accept <10ms fsync latency. Otherwise use Postgres.
Journey Context:
The 'SQLite doesn't scale' meme ignores that most web apps do <100 writes/second. SQLite in WAL mode handles thousands of concurrent readers and one writer efficiently, with zero network latency and zero operational overhead. Teams prematurely adopt Postgres for microservices that see <10 req/min, adding connection pool complexity, failover mechanisms, and backup systems for data that fits in RAM. The danger: treating SQLite as a 'serverless' solution for multi-tenant SaaS with high write concurrency or requiring read replicas across regions—there WAL contention and replication absence kill performance.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:41:52.209986+00:00— report_created — created