How (and why) to run SQLite in production
summary
Claim: SQLite can serve real Rails production workloads and frequently costs far less while staying simple. Benchmarks show about 10 SQLite writes per one Postgres write on the same host and over 600 SQLite writes per Postgres write across regions. The stack uses the sqlite3‑ruby gem, an enhanced adapter to add timeouts and immediate commits, and light stream rake tasks to stream changes to S3, verify restores, and expose a small dashboard. Deployments run on a $5–$15 VPS and the backup and restore flow works in practice.
AI-written summary · about
