Skip to content
← All issues

Readyset Weekly: Issue 63

Making Sense of Adaptive or Feedback-Driven Balancing

Round-robin spreads load, read/write splitting separates intent, and latency-aware routing tracks speed. Adaptive balancing closes the loop by adjusting in real time based on live metrics such as CPU, latency, and replica lag.

  • Define "feedback": Adaptive systems measure how replicas actually perform, not how they should. Tools like ProxySQL or Envoy pull metrics from health checks, query logs, or Prometheus and rebalance traffic as conditions change.
  • Collect actionable metrics: Latency spikes, queue depth, and active connections reveal more about real workload pressure than CPU or memory stats. Feed this data into your routing layer for smarter balancing. In Postgres, use pg_stat_activity and pg_stat_statements; in MySQL, use performance_schema.events_statements_summary_by_digest.
  • Avoid overreaction: Feedback systems can oscillate if they respond too quickly. Smooth inputs with moving averages or weighted scoring to shift traffic gradually instead of bouncing between replicas. The goal is stability, not constant motion.
  • Pair adaptation with intent: Metrics show capacity, but not purpose. Combine feedback with query intent by routing transactional reads to low-lag replicas and analytical reads to nodes with spare CPU. Feedback guides where work can go, while intent defines where it should.

Adaptive balancing shines in dynamic, high-traffic environments where conditions shift constantly. Readyset QueryPilot takes it further, using live data to learn, identify costly queries, and cache them automatically for seamless scaling.

🔍 What We're Watching in the Database Ecosystem

Barbarians at the Gate: How AI is Upending Systems Research

This article explores how AI-driven systems are beginning to automate core infrastructure tasks like algorithm discovery, scheduling, and query optimization, with reported 5x speedups and 26% cost reductions. It points to a future where performance tuning depends less on manual heuristics and more on intelligent, self-optimizing feedback loops.

Beyond Indexes: How Open Table Formats Optimize Query Performance

A deep analysis of how open table formats like Apache Iceberg, Delta Lake, and Hudi replace traditional indexing with more innovative data organization. By leveraging partitioning, sorting, and metadata-driven pruning, these systems reduce scan time and improve query efficiency across massive analytical workloads.

In Case You Missed It

Last week, Tanmay and Bianchi unpacked why even well-tuned databases buckle under Black Friday traffic and what high-scale teams do differently. The session showed how Readyset QueryPilot automates query identification and caching to keep MySQL stable without adding replicas or manual tuning. Whether you're preparing for holiday sales, a major launch, or any traffic surge, this replay is worth a watch. Check it out here.

Get Readyset Weekly in your inbox

One email a week — what shipped, what we learned, and what is worth reading.