---
title: "Interning at incident.io: rate limiting, resiliently"
description: "incident.io made its rate limiter keep working when its Valkey backing store (Google Cloud Memorystore) is unavailable, instead of failing open."
url: "https://swe.quest/articles/interning-at-incident-io-rate-limiting-resiliently-703eb65d0ab42974"
canonical: "https://incident.io/blog/interning-at-incident-io-rate-limiting-resiliently"
source: "incident.io"
published: "2026-09-02"
difficulty: "medium"
kind: "Culture"
reading_minutes: 10
tags: ["resilience","algorithms","kubernetes","engineering-culture"]
---

# Interning at incident.io: rate limiting, resiliently

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2026-09-02, 10 min read, Culture. Original: [https://incident.io/blog/interning-at-incident-io-rate-limiting-resiliently](https://incident.io/blog/interning-at-incident-io-rate-limiting-resiliently)

## Summary

incident.io made its rate limiter keep working when its Valkey backing store (Google Cloud Memorystore) is unavailable, instead of failing open. Each pod tracks the top-k busiest traffic gates in local memory and keeps an in-memory budget buffer for them, so it can grant up to its local budget and then deny. A simulation benchmark chose HeavyKeeper over Space-saving because Space-saving lost precision under high-cardinality traffic. The change was validated by killing a local Valkey cluster mid-test and was rolled out gradually by gate risk; a follow-up used a Kubernetes informer to divide the limit by the live pod count so the effective limit didn't become limit × pods. The post is framed as an intern's experience and recruiting pitch.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Engineering culture](https://swe.quest/tags/engineering-culture.md) (Engineering organization)

## Prerequisites

- rate limiting basics
- Redis/Valkey ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- Kubernetes pods ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))

## Keywords

Valkey, Google Cloud Memorystore, HeavyKeeper, Space-saving algorithm, Kubernetes informer, incident.io

## Related posts

- [10 Tips for Building Resilient Payment Systems](https://swe.quest/articles/10-tips-for-building-resilient-payment-systems-94c9ade99576742c.md): Shopify Engineering · 2022-07-28 · Medium · 13 min read · Payments & fintech, Resilience, Observability, Incidents & postmortems, Ruby
  Ten lessons from Shopify's payment infrastructure for keeping payment systems reliable at scale.
- [Thundering herd of circuit breakers](https://swe.quest/articles/thundering-herd-of-circuit-breakers-b2ab1d42eebffb68.md): Zalando Engineering · 2026-10-07 · Medium · 9 min read · Resilience, Incidents & postmortems, Observability, Kubernetes, Capacity planning
  A client's circuit breaker stayed open for hours because its half-open probes hit a service that the HPA had scaled down to three pods.
- [Three Mighty Alerts Supporting Hugging Face’s Production Infrastructure](https://swe.quest/articles/three-mighty-alerts-supporting-hugging-face-s-production-infrastructure-66775538377e73af.md): Hugging Face · 2025-07-08 · Medium · 15 min read · Observability, SRE, Kubernetes, Cost optimization, Cloud platforms
  Hugging Face's infrastructure team relies on three alerts to catch problems early.
- [Fixed cadence to seconds: making ClickHouse Cloud autoscaling more reactive](https://swe.quest/articles/fixed-cadence-to-seconds-making-clickhouse-cloud-autoscaling-more-reactive-1b4745e879b2e9ce.md): ClickHouse · 2026-08-04 · Medium · 13 min read · Kubernetes, Capacity planning, Go, Analytics & OLAP, Event-driven architecture
  ClickHouse Cloud's vertical autoscaling recommender moved from a fixed timer loop to a controller-runtime based design, so services that hit memory pressure get a recommendation in seconds instead of waiting for the next scheduled pass.
- [What today's software owes to Bronze Age clocks](https://swe.quest/articles/what-today-s-software-owes-to-bronze-age-clocks-f1c84fb59510a8bf.md): PlanetScale · 2026-10-07 · Medium · 8 min read · Resilience, PostgreSQL, API design, Algorithms
  Leaky buckets, descended from Bronze Age water clocks, remain a cheap admission-control mechanism: a bucket stores only its last level and timestamp, so its current level can be computed lazily as max(0, level\_then − drain\_rate × elapsed).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
