<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-we-cut-redis-read-operations-by-67-with-a-stateful-caching-proxy-tuncvtyqs" -->

---
title: How We Cut Redis Read Operations by 67% with a Stateful...
description: Inngest reduced Redis read pressure on its sharded cluster by 67% (from ~42,000/sec to ~14,000/sec) by introducing a gRPC caching proxy in front of the state...
canonical: https://daily.dev/posts/how-we-cut-redis-read-operations-by-67-with-a-stateful-caching-proxy-tuncvtyqs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How We Cut Redis Read Operations by 67% with a Stateful Caching Proxy | daily.dev
og:description: Inngest reduced Redis read pressure on its sharded cluster by 67% (from ~42,000/sec to ~14,000/sec) by introducing a gRPC caching proxy in front of the state...
og:url: https://daily.dev/posts/how-we-cut-redis-read-operations-by-67-with-a-stateful-caching-proxy-tuncvtyqs
og:image: https://api.daily.dev/og/posts/TuNcvTyqs.png
og:image:alt: How We Cut Redis Read Operations by 67% with a Stateful Caching Proxy
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How We Cut Redis Read Operations by 67% with a Stateful Caching Proxy

**[Inngest Blog](https://daily.dev/sources/inngest)** · 8 min read · 0 upvotes · 0 comments

## Summary

Inngest reduced Redis read pressure on its sharded cluster by 67% (from ~42,000/sec to ~14,000/sec) by introducing a gRPC caching proxy in front of the state store. The proxy exploits the fact that triggering events and step inputs/outputs are immutable once written, so they can be cached without invalidation logic, while mutable execution stack and run metadata are routed directly to Redis. Consistent hashing on run ID, paired with a headless Kubernetes service and gRPC's ringhash load balancer, ensures requests for a given run land on the same cache node. PebbleDB was chosen over Badger for the local cache due to fewer allocations per operation. Rollout used shadow mode for correctness validation followed by per-account feature flags for safe, incremental cutover.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.inngest.com/blog/redis-stateful-caching>

## Questions this post answers

### How can I reduce Redis read load in a sharded cluster without adding more shards?

Introduce a caching proxy that sits between services and Redis, caching data that is immutable once written (like triggering events and step inputs/outputs) while routing mutable data directly to Redis. Inngest used this approach with a gRPC proxy using consistent hashing on run ID, cutting Redis read operations from about 42,000/sec to 14,000/sec, a 67% reduction.

_daily.dev surfaces engineering writeups like this for teams weighing caching strategies against Redis scaling costs._

### Why would PebbleDB be chosen over Badger for an embedded cache in Go?

PebbleDB was chosen over Badger because it performed significantly fewer allocations per operation despite comparable raw throughput, which reduces pressure on Go's garbage collector and gives a more predictable memory footprint under load. Configuration flexibility, such as disabling the WAL and tuning memtable sizes, further improved write throughput, and PebbleDB was already used elsewhere in the system for caching.

_Engineers comparing embedded Go key-value stores can find grounded benchmarks like this through daily.dev._

### How do you achieve consistent request routing to cache nodes in Kubernetes without a distributed cache?

Use consistent hashing based on a request key (such as a run ID) combined with a headless Kubernetes service that exposes pod IPs directly via DNS, letting the gRPC client apply its own load balancing via a ringhash load balancer. This ensures requests for the same key consistently land on the node holding its cache entry, and setting max_connection_age forces periodic DNS re-resolution so clients detect scale-out events.

_Teams designing locality-aware routing in kubernetes can track patterns like this via daily.dev._

## Similar posts on daily.dev

- [How we migrated the database behind every Vercel build](https://daily.dev/posts/how-we-migrated-the-database-behind-every-vercel-build-wstvjzabz) · Vercel · 3 upvotes · 2 comments
- [Lessons learned building DoorDash’s clusterless ML feature store](https://daily.dev/posts/lessons-learned-building-doordash-s-clusterless-ml-feature-store-wbskyh8za) · Doordash · 1 upvotes · 0 comments
- [ZGateway: Learnings from Putting a Proxy in Front of ZippyDB](https://daily.dev/posts/zgateway-learnings-from-putting-a-proxy-in-front-of-zippydb-yyyucjkj2) · Facebook Engineering
 · 0 upvotes · 0 comments
- [Client-Side Load Balancing at a Million Requests Per Second](https://daily.dev/posts/client-side-load-balancing-at-a-million-requests-per-second-bvi2j48ww) · Zalando · 20 upvotes · 1 comments

---

Tags: [#grpc](https://daily.dev/tags/grpc), [#redis](https://daily.dev/tags/redis), [#system-design](https://daily.dev/tags/system-design)

[View this post on daily.dev](https://daily.dev/posts/how-we-cut-redis-read-operations-by-67-with-a-stateful-caching-proxy-tuncvtyqs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How We Cut Redis Read Operations by 67% with a Stateful Caching Proxy","url":"https://daily.dev/posts/how-we-cut-redis-read-operations-by-67-with-a-stateful-caching-proxy-tuncvtyqs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-we-cut-redis-read-operations-by-67-with-a-stateful-caching-proxy-tuncvtyqs"},"datePublished":"2026-09-13T19:57:49.040Z","dateModified":"2026-11-01T18:45:53.350Z","description":"Inngest reduced Redis read pressure on its sharded cluster by 67% (from ~42,000/sec to ~14,000/sec) by introducing a gRPC caching proxy in front of the state...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8f87b913ab8d7739689f2cd1dd6947e5?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8f87b913ab8d7739689f2cd1dd6947e5?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Inngest Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Inngest Blog","logo":"https://media.daily.dev/image/upload/s--ieZKUa5y--/c_limit,w_256/f_auto,q_auto/v1789329423/logos/inngest?_a=BAMAMicg0","url":"https://daily.dev/sources/inngest"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-we-cut-redis-read-operations-by-67-with-a-stateful-caching-proxy-tuncvtyqs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"grpc,redis,system-design","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Inngest Blog","item":"https://daily.dev/sources/inngest"},{"@type":"ListItem","position":3,"name":"How We Cut Redis Read Operations by 67% with a Stateful Caching Proxy"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-we-cut-redis-read-operations-by-67-with-a-stateful-caching-proxy-tuncvtyqs#faq","mainEntity":[{"@type":"Question","name":"How can I reduce Redis read load in a sharded cluster without adding more shards?","acceptedAnswer":{"@type":"Answer","text":"Introduce a caching proxy that sits between services and Redis, caching data that is immutable once written (like triggering events and step inputs/outputs) while routing mutable data directly to Redis. Inngest used this approach with a gRPC proxy using consistent hashing on run ID, cutting Redis read operations from about 42,000/sec to 14,000/sec, a 67% reduction. daily.dev surfaces engineering writeups like this for teams weighing caching strategies against Redis scaling costs."}},{"@type":"Question","name":"Why would PebbleDB be chosen over Badger for an embedded cache in Go?","acceptedAnswer":{"@type":"Answer","text":"PebbleDB was chosen over Badger because it performed significantly fewer allocations per operation despite comparable raw throughput, which reduces pressure on Go's garbage collector and gives a more predictable memory footprint under load. Configuration flexibility, such as disabling the WAL and tuning memtable sizes, further improved write throughput, and PebbleDB was already used elsewhere in the system for caching. Engineers comparing embedded Go key-value stores can find grounded benchmarks like this through daily.dev."}},{"@type":"Question","name":"How do you achieve consistent request routing to cache nodes in Kubernetes without a distributed cache?","acceptedAnswer":{"@type":"Answer","text":"Use consistent hashing based on a request key (such as a run ID) combined with a headless Kubernetes service that exposes pod IPs directly via DNS, letting the gRPC client apply its own load balancing via a ringhash load balancer. This ensures requests for the same key consistently land on the node holding its cache entry, and setting max_connection_age forces periodic DNS re-resolution so clients detect scale-out events. Teams designing locality-aware routing in kubernetes can track patterns like this via daily.dev."}}]}
```

