Readyset Weekly: Issue 27
Navigating Read/write Splitting
After round-robin balancing, the next step is read/write splitting. It routes reads to replicas and writes to the primary. Done right, it scales reads efficiently. Done wrong, it causes lag and inconsistency.
- Start with a SQL-aware proxy: Tools like ProxySQL, Pgpool-II, or MaxScale route writes to the primary and reads to replicas.
- Watch replication lag: In MySQL, monitor
Seconds_Behind_Master; in Postgres, checkpg_stat_replication. For reads that must reflect recent writes, temporarily route them to the primary or enable semi-synchronous replication. - Tag traffic by intent: Many frameworks support routing via query tags or hints. Mark non-critical reads as "stale-tolerant" and keep critical reads on the primary.
- Test failure modes early: Failover is where read/write setups often break. Ensure the proxy detects promotions quickly and reroutes writes correctly. Tools like Orchestrator (MySQL) and Patroni (Postgres) handle leader elections but need close proxy integration to avoid downtime.
Read/write splitting fits read-heavy systems with predictable consistency needs, but complexity grows with each replica. At Readyset, we see it as one step toward smarter workload isolation. QueryPilot goes further by caching frequent reads automatically, reducing replica load and keeping primaries focused on writes.
🔍 What We're Watching in the Database Ecosystem
Why SQL Still Rules the Data World in 2025
Despite waves of new data technologies, SQL remains at the foundation of enterprise data systems. Its standardization, reach, and ability to evolve with AI and cloud keep it central to how data actually moves and scales.
A look at how YouTube scales MySQL through sharding, routing, and caching. The real complexity lies in keeping replication, latency, and query routing aligned across thousands of nodes.
A clear walkthrough on managing time-based data in SQL, outlining best practices for timestamp storage, conversion, and maintaining consistency across time zones.
In Case You Missed It
Does Your Black Friday Database Scaling Strategy Involve Duct Tape and Prayers?
In our latest post, Tanmay examines how most Black Friday database scaling plans rely on last-minute "hopes and prayers." He outlines how query caching, replica routing, and intelligent patterns can replace crisis mode with stable, predictable performance when traffic spikes, and how to automate the process end-to-end.
He'll be doing a live webinar on this topic with Bianchi next Thursday. Register here.
Get Readyset Weekly in your inbox
One email a week — what shipped, what we learned, and what is worth reading.