Skip to content
← All issues

Readyset Weekly: Issue 41

Query Caching vs. Read Replicas: Which Saves You More Money?

This week, we're breaking down a common scaling decision: read replicas versus query caching, and which one actually reduces cost as read traffic grows. Below are a few practical considerations when comparing the two.

  1. Replicas spread work, they don't remove it: Replicas help absorb read traffic, but the same queries are still executed repeatedly. Total compute still scales with request volume.
  2. Caching eliminates repeated execution: For stable, high-frequency reads, query caching serves results without re-parsing or executing queries. Removing execution, not just speeding it up, is what drives meaningful cost savings.
  3. Replica fleets grow quickly: As traffic increases, teams often add replicas to manage tail latency and contention. Costs compound fast, along with operational complexity, connection limits, and failure modes.
  4. Hit rate matters more than latency: A fast cache miss still falls back to the database. The real savings come from consistently hitting on stable, repeatable query patterns and keeping those queries off the primary and replicas.
  5. Freshness can have a real cost: Replica lag and traditional cache invalidation both add complexity, but replicas require continuously running infrastructure to stay current. SQL-layer caching with incremental view maintenance avoids invalidation while keeping freshness under control.

Read replicas are a useful tool, but they're an expensive way to scale repetitive reads. With Readyset, teams remove repeated query execution, reduce reliance on replicas, and significantly lower infrastructure costs without adding operational complexity.

🔍 What We're Watching in the Database Ecosystem

The Rise of the AI DBA

Build DevCon's "AI DBA: Self-Driving Databases" highlights how LLMs are bringing renewed interest to autonomous database operations. The potential is real, especially for automating tuning and troubleshooting, but putting probabilistic systems in the control plane introduces new failure modes and operational risk. AI can assist DBAs, but full autonomy still demands strong guardrails and deep systems understanding.

Running ChatGPT-Style Workloads on PostgreSQL in Azure

Microsoft's breakdown of running ChatGPT-scale workloads on Azure Database for PostgreSQL is a useful look at what it takes to support AI-driven applications in production. The post makes clear that AI workloads place sustained, read-heavy pressure on databases, pushing teams toward aggressive scaling, caching, and architectural workarounds.

Why Agents Need Better Data Access Than Tools

Vercel's agent evaluations show that structured access to data matters more than adding more agent "skills." For anyone building data-backed systems, this reinforces a familiar lesson: reliable, low-latency data access often determines system performance more than orchestration or model complexity.

In Case You Missed It

The Hidden Complexity of Scaling PostgreSQL

Our latest post, sparked by OpenAI's write-up on scaling PostgreSQL, looks at how pushing Postgres to high traffic requires substantial architectural investment beyond the database itself. It breaks down the hidden complexity of application-level caching and query routing, and explains how moving caching and query isolation into the SQL layer can deliver similar scale with far less operational overhead.

Get Readyset Weekly in your inbox

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