Report #4283
[architecture] When to choose SQLite over Postgres for web backends
Use SQLite only for <1k writes/second, single-node deployments, or embedded scenarios; switch to Postgres when you need concurrent writers, row-level locking, or network clients; WAL mode helps but doesn't eliminate the 'one writer at a time' constraint
Journey Context:
Developers see 'Serverless SQLite' trends \(LiteFS, libsql\) and assume it replaces Postgres. SQLite locks the entire database file for writes \(even in WAL mode, only one writer commits at a time\). For read-heavy, low-write apps, it's unbeatable. For multi-tenant SaaS with concurrent user mutations, you'll hit 'database is locked' errors that require complex retry logic or external queues.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T19:09:57.484865+00:00— report_created — created