# thundering herd

Published articles for thundering herd.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Thundering herd of circuit breakers

DevFeed: [Thundering herd of circuit breakers](<https://devfeed.tech/articles/thundering-herd-of-circuit-breakers-76983.md>)

Original publisher: [Read original article](<https://engineering.zalando.com/posts/2026/10/thundering-herd-of-circuit-breakers.html>)

Author: Valeria Ponyaeva

Published: 2026-10-07T22:00:00Z

Content type: article

Language: en

Sources: [Zalando](<https://devfeed.tech/sources/zalando-engineering-blog.md>)

Topics: [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>), [Data visualization](<https://devfeed.tech/topics/data-visualization.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [container image compliance](<https://devfeed.tech/topics/container-image-compliance.md>), [rate-limiting](<https://devfeed.tech/topics/rate-limiting.md>)

Tags: [auto-scaling](<https://devfeed.tech/tags/auto-scaling.md>), [backend](<https://devfeed.tech/tags/backend.md>), [backpressure](<https://devfeed.tech/tags/backpressure.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [circuit](<https://devfeed.tech/tags/circuit.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [data-visualization](<https://devfeed.tech/tags/data-visualization.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [sre](<https://devfeed.tech/tags/sre.md>), [thundering-herd](<https://devfeed.tech/tags/thundering-herd.md>), [trace](<https://devfeed.tech/tags/trace.md>), [zalando](<https://devfeed.tech/tags/zalando.md>)

### AI overview

A circuit breaker repeatedly closed after successful low-volume probes, then released queued traffic in a burst that overwhelmed a service scaled down to its minimum. OpenTelemetry traces visualized in a custom tool exposed the cycle, while pre-scaling helped the service absorb traffic and remain stable. The article also discusses autoscaling, probing, backpressure, and cancellation handling as ways to reduce the failure loop.

### Source excerpt

A client-side circuit breaker stays open for hours, blocking 95% of traffic, and won't close. Our service shows no sign of being unhealthy. To understand the anomaly, we build a custom span visualizer on top of OpenTelemetry trace data and find a circuit breaker trap that our existing dashboards don't reveal.

## How Fixed Intervals Synchronize Distributed Clients and How Jitter Helps

DevFeed: [How Fixed Intervals Synchronize Distributed Clients and How Jitter Helps](<https://devfeed.tech/articles/jitter-is-the-cheapest-reliability-fix-you-are-not-using-39601.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/49-jitter-synchronised-clients/>)

Author: hello@ankit-rana.com

Published: 2026-09-07T00:00:00Z

Content type: opinion

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [reliability-engineering](<https://devfeed.tech/topics/reliability-engineering.md>), [distributed-systems](<https://devfeed.tech/topics/distributed-systems.md>), [systems](<https://devfeed.tech/topics/systems.md>), [Network](<https://devfeed.tech/topics/network.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Redis](<https://devfeed.tech/topics/redis.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [cache](<https://devfeed.tech/tags/cache.md>), [code](<https://devfeed.tech/tags/code.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [jitter](<https://devfeed.tech/tags/jitter.md>), [network](<https://devfeed.tech/tags/network.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [resilience](<https://devfeed.tech/tags/resilience.md>), [retries](<https://devfeed.tech/tags/retries.md>), [thundering-herd](<https://devfeed.tech/tags/thundering-herd.md>)

### AI overview

Fixed retry intervals, TTLs, restarts, reconnects, and other recurring events can cause independent clients in distributed systems to synchronize, producing repeated load spikes. Adding randomness, or jitter, helps break that alignment; the article cites AWS measurements indicating that full jitter improves total work and completion time under contention.

### Source excerpt

Distributed systems synchronise themselves without being told to: every client that retries on a fixed interval, restarts after a deploy, or reconnects after a network blip ends up firing at the same moment as every other client. The resulting spike is a self-inflicted denial of service that no single component is responsible for. Adding randomness to any repeating interval breaks the alignment, and it is usually one line of code against a failure mode that otherwise requires capacity you never needed.

## Cache stampede: how one expired key takes down the database

DevFeed: [Cache stampede: how one expired key takes down the database](<https://devfeed.tech/articles/cache-stampede-how-one-expired-key-takes-down-the-database-39600.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/48-cache-stampede-expired-key/>)

Author: hello@ankit-rana.com

Published: 2026-09-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [Database](<https://devfeed.tech/topics/database.md>), [consistent hashing](<https://devfeed.tech/topics/consistent-hashing.md>), [Redis](<https://devfeed.tech/topics/redis.md>)

Tags: [cache-stampede](<https://devfeed.tech/tags/cache-stampede.md>), [caching](<https://devfeed.tech/tags/caching.md>), [connection-pool](<https://devfeed.tech/tags/connection-pool.md>), [consistent-hashing](<https://devfeed.tech/tags/consistent-hashing.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [jitter](<https://devfeed.tech/tags/jitter.md>), [query](<https://devfeed.tech/tags/query.md>), [redis](<https://devfeed.tech/tags/redis.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [thundering-herd](<https://devfeed.tech/tags/thundering-herd.md>), [traffic](<https://devfeed.tech/tags/traffic.md>), [ttl](<https://devfeed.tech/tags/ttl.md>)

### AI overview

This article explains how a cache stampede occurs when a hot key expires and many requests simultaneously recompute the same value against the database. It recommends TTL jitter to prevent synchronized expirations and request coalescing so only one caller recomputes while others wait or serve stale data. It also discusses cache warming and consistent hashing for broader cache-failure scenarios.

### Source excerpt

A cache TTL is a scheduled simultaneous failure: every request being served from one key misses at the same instant and goes to the origin together. If the recompute takes two seconds, every request arriving during those two seconds also misses, so the pileup grows faster than it drains. Jitter on the TTL stops keys expiring in lockstep, and request coalescing so only one caller recomputes while the rest wait or serve stale is what stops a single expensive key from saturating the database.

## Redesigning Kubernetes Workqueues and Resyncs to Reduce Thundering Herd Effects

DevFeed: [Redesigning Kubernetes Workqueues and Resyncs to Reduce Thundering Herd Effects](<https://devfeed.tech/articles/this-shit-is-hard-taming-the-thundering-herd-13289.md>)

Original publisher: [Read original article](<https://www.chainguard.dev/unchained/this-shit-is-hard-taming-the-thundering-herd>)

Published: 2026-09-02T00:00:00Z

Content type: article

Language: en

Sources: [Chainguard: Unchained](<https://devfeed.tech/sources/chainguard-unchained.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [systems](<https://devfeed.tech/topics/systems.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Maintainers](<https://devfeed.tech/topics/maintainers.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [defense-in-depth](<https://devfeed.tech/tags/defense-in-depth.md>), [failover](<https://devfeed.tech/tags/failover.md>), [goroutines](<https://devfeed.tech/tags/goroutines.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [latency](<https://devfeed.tech/tags/latency.md>), [maintainers](<https://devfeed.tech/tags/maintainers.md>), [reconciliation](<https://devfeed.tech/tags/reconciliation.md>), [thundering-herd](<https://devfeed.tech/tags/thundering-herd.md>)

### AI overview

This article explains how Kubernetes controllers can experience thundering herd effects when restarts, leader failovers, or periodic resyncs cause many keys to enter an in-memory workqueue at once. It describes the queue and informer behavior behind the problem and introduces Chainguard's redesign of workqueues and resyncs to improve reconciliation under these conditions.

### Source excerpt

The thundering herd is an architecture problem. See how Chainguard redesigned workqueues and resyncs to keep reconciliation running smoothly.

## Understanding Load Balancing for Beginners

DevFeed: [Understanding Load Balancing for Beginners](<https://devfeed.tech/articles/understanding-load-balancing-for-beginners-17489.md>)

Original publisher: [Read original article](<https://kodekloud.com/blog/understanding-load-balancing-for-beginners/>)

Author: Pramodh Kumar M

Published: 2026-08-17T17:00:34Z

Content type: tutorial

Language: en

Sources: [KodeKloud](<https://devfeed.tech/sources/kubernetes-kodekloud-blog-devops-cloud-kubernetes-ai-tutorials-more.md>)

Topics: [Back end](<https://devfeed.tech/topics/backend.md>), [Network](<https://devfeed.tech/topics/network.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [beginners](<https://devfeed.tech/tags/beginners.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [connection-draining](<https://devfeed.tech/tags/connection-draining.md>), [devops](<https://devfeed.tech/tags/devops.md>), [failover](<https://devfeed.tech/tags/failover.md>), [health-checks](<https://devfeed.tech/tags/health-checks.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [layer-4-vs-layer-7](<https://devfeed.tech/tags/layer-4-vs-layer-7.md>), [least-connections](<https://devfeed.tech/tags/least-connections.md>), [load-balancer](<https://devfeed.tech/tags/load-balancer.md>), [load-balancer-for-beginners](<https://devfeed.tech/tags/load-balancer-for-beginners.md>), [load-balancing](<https://devfeed.tech/tags/load-balancing.md>), [load-balancing-algorithms](<https://devfeed.tech/tags/load-balancing-algorithms.md>), [networking](<https://devfeed.tech/tags/networking.md>), [nginx](<https://devfeed.tech/tags/nginx.md>), [round-robin](<https://devfeed.tech/tags/round-robin.md>), [session-affinity](<https://devfeed.tech/tags/session-affinity.md>), [sre](<https://devfeed.tech/tags/sre.md>), [sticky-sessions](<https://devfeed.tech/tags/sticky-sessions.md>), [thundering-herd](<https://devfeed.tech/tags/thundering-herd.md>), [traffic-management](<https://devfeed.tech/tags/traffic-management.md>)

### AI overview

This beginner-oriented article explains load balancing as both traffic distribution and backend failure detection. It compares round robin and least-connections algorithms, distinguishes Layer 4 from Layer 7 routing, and discusses health checks, failover, draining, sticky sessions, and the risks of overly aggressive checks.

### Source excerpt

Spreading traffic is the easy half of load balancing. The half that decides whether an outage lasts ten seconds or ten minutes is noticing that a backend has stopped working, and most health checks cannot.

## The Thundering Herd Problem in Agentic AI: Why Traditional Fixes Fall Short

DevFeed: [The Thundering Herd Problem in Agentic AI: Why Traditional Fixes Fall Short](<https://devfeed.tech/articles/the-thundering-herd-problem-in-agentic-ai-why-traditional-fixes-fall-short-23739.md>)

Original publisher: [Read original article](<https://cockroachlabs.com/blog/agentic-ai-thundering-herd-problem>)

Author: Quentin Packard

Published: 2026-06-19T00:00:00Z

Content type: article

Language: en

Sources: [Cockroach Labs](<https://devfeed.tech/sources/cockroach-labs.md>)

Topics: [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [Agentic AI](<https://devfeed.tech/topics/what-is-agentic-ai.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [synchronization](<https://devfeed.tech/topics/synchronization.md>), [site-reliability-engineering](<https://devfeed.tech/topics/site-reliability-engineering.md>), [ai observability](<https://devfeed.tech/topics/ai-observability.md>), [observability](<https://devfeed.tech/topics/observability.md>), [LLM observability](<https://devfeed.tech/topics/llm-observability.md>), [Post Mortem](<https://devfeed.tech/topics/post-mortem.md>), [AI for customer service automation](<https://devfeed.tech/topics/ai-for-customer-service-automation.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2020](<https://devfeed.tech/tags/2020.md>), [2025](<https://devfeed.tech/tags/2025.md>), [2026](<https://devfeed.tech/tags/2026.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [account](<https://devfeed.tech/tags/account.md>), [act](<https://devfeed.tech/tags/act.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-framework](<https://devfeed.tech/tags/agent-framework.md>), [agent-orchestration](<https://devfeed.tech/tags/agent-orchestration.md>), [agent-state](<https://devfeed.tech/tags/agent-state.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [agentic-ai-architecture](<https://devfeed.tech/tags/agentic-ai-architecture.md>), [agentic-ai-security](<https://devfeed.tech/tags/agentic-ai-security.md>), [ai](<https://devfeed.tech/tags/ai.md>), [fall](<https://devfeed.tech/tags/fall.md>), [herd](<https://devfeed.tech/tags/herd.md>), [thundering-herd](<https://devfeed.tech/tags/thundering-herd.md>)

### AI overview

Agentic AI can create thundering-herd load internally: parallel agents and tool calls converge on shared databases or caches, while automatic multi-step retries can amplify failures. The excerpt identifies three patterns: synchronized writes when sub-agents finish together, semantically similar cache misses after correlated expiry, and workflow-wide retry storms. A Cockroach Labs benchmark reported a sharp saturation inflection between 700 and 1,000 concurrent agents; at 5,000 and 10,000 agents, PostgreSQL throughput fell below CockroachDB's. The author notes the benchmark is vendor-run and advises testing representative workloads. Suggested controls include staggering agent dispatch and cache TTLs with jitter, sizing connection pools for fan-out, triggering circuit breakers on behavioral signals such as latency growth and write volume, avoiding sequential-key hotspots, and using sufficiently granular durable checkpoints. The excerpt cautions that results at hundreds of agents may not predict behavior at thousands.

### Source excerpt

The thundering herd of the past was externally triggered.

## Scaling Nextdoor's Datastores: Part 3

DevFeed: [Scaling Nextdoor's Datastores: Part 3](<https://devfeed.tech/articles/scaling-nextdoor-s-datastores-part-3-20342.md>)

Original publisher: [Read original article](<https://engblog.nextdoor.com/scaling-nextdoors-datastores-part-3-e9b4dd8a9393?source=rss----5e54f11cdfdf---4>)

Author: Ronak Shah

Published: 2025-03-19T15:08:43Z

Content type: article

Language: en

Sources: [Nextdoor](<https://devfeed.tech/sources/nextdoor.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [Database](<https://devfeed.tech/topics/database.md>), [schema-evolution](<https://devfeed.tech/topics/schema-evolution.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [Django](<https://devfeed.tech/topics/django.md>), [Python](<https://devfeed.tech/topics/python.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [valkey](<https://devfeed.tech/topics/valkey.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cache-invalidation](<https://devfeed.tech/tags/cache-invalidation.md>), [caching](<https://devfeed.tech/tags/caching.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [database](<https://devfeed.tech/tags/database.md>), [django](<https://devfeed.tech/tags/django.md>), [lua](<https://devfeed.tech/tags/lua.md>), [python](<https://devfeed.tech/tags/python.md>), [redis](<https://devfeed.tech/tags/redis.md>), [schema](<https://devfeed.tech/tags/schema.md>), [serialization-format](<https://devfeed.tech/tags/serialization-format.md>), [thundering-herd](<https://devfeed.tech/tags/thundering-herd.md>), [valkey](<https://devfeed.tech/tags/valkey.md>)

### AI overview

Part 3 of Nextdoor's datastore-scaling series explains how applications serialize database objects for Redis or Valkey look-aside caches. It describes compatibility problems caused by runtime, package, and schema changes, including cache misses and thundering-herd effects during migrations.

### Source excerpt

In this part of the Scaling Nextdoor's Datastores blog series, we'll explore how the Core-Services team at Nextdoor serializes database data for caching while ensuring forward and backward compatibility between the cache and application code. In part 1 of this series we discussed how ORMs, object-relational mapping frameworks, help abstract away database specific schemas and queries from application code. Developers simply utilize objects in their application's language to access database data. Here's a simple example of using Python's Django ORM to define a model: from django.db import models class Users(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) The associated SQL create table would look like: CREATE TABLE users ( "id" bigint NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, "first_name" varchar(30) NOT NULL, "last_name" varchar(30) NOT NULL ); Developers would then access database data like this: user_id = 123 user = User.objects.get(id=user_id) print(user.first_name)Object Byte Serialization for Caching An issue arises when adding a look-aside cache such as Redis/Valkey to an application: How do you store what you got from the database in the cache? A common solution to caching complex objects, such as those from ORMs, is object byte serialization. This process converts language objects into bytes before storing them in the cache. When reading from the cache the process is done in reverse where the byte data is turned into language objects. For instance in Python this is often done with the pickle package. The interaction between the application, database, and the cache looks like this: Look-Aside Cacheimport pickle # Try getting from cache ('None' if not in cache) user_bytes = cache.get("user_123") if user_bytes is not None: # Read bytes using pickle user = pickle.loads(user_bytes) else: # Fetch from database user = User.objects.get(id=123) # Convert to bytes user_bytes = pickle.dumps(user) # Sto

## The Thundering Herd Problem

DevFeed: [The Thundering Herd Problem](<https://devfeed.tech/articles/the-thundering-herd-problem-17852.md>)

Original publisher: [Read original article](<https://encore.dev/blog/thundering-herd-problem>)

Author: Matt Boyle

Published: 2024-01-30T00:00:00Z

Content type: article

Language: en

Sources: [Encore Updates](<https://devfeed.tech/sources/encore-updates.md>)

Topics: [distributed-systems](<https://devfeed.tech/topics/distributed-systems.md>), [incident](<https://devfeed.tech/topics/incident.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [incident](<https://devfeed.tech/tags/incident.md>), [latency](<https://devfeed.tech/tags/latency.md>), [scale](<https://devfeed.tech/tags/scale.md>), [thundering-herd](<https://devfeed.tech/tags/thundering-herd.md>)

### AI overview

An account of a 2018 incident in which a feature launch sent notifications to customers and enabled a waitlist, triggering a thundering herd of requests. The resulting service crashes, high latency, and high CPU usage illustrate how retries and unreliable networks can overload an API and its dependencies.

### Source excerpt

Distributed Systems Horror Stories: Part Two