---
title: "Enhancing Distributed System Load Shedding with TCP Congestion Control Algorithm"
description: "Zalando's customer communication platform applies TCP-style AIMD (Additive Increase Multiplicative Decrease) congestion control at its ingestion point to shed load and prioritize critical messages."
url: "https://swe.quest/articles/enhancing-distributed-system-load-shedding-with-tcp-congestion-control-algorithm-c180104e3f071048"
canonical: "https://engineering.zalando.com/posts/2024/04/enhancing-distributed-system-load-shedding-with-tcp-congestion-control-algorithm.html"
source: "Zalando Engineering"
published: "2024-04-22"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["resilience","event-driven","messaging","microservices"]
---

# Enhancing Distributed System Load Shedding with TCP Congestion Control Algorithm

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2024-04-22, 9 min read, Case study. Original: [https://engineering.zalando.com/posts/2024/04/enhancing-distributed-system-load-shedding-with-tcp-congestion-control-algorithm.html](https://engineering.zalando.com/posts/2024/04/enhancing-distributed-system-load-shedding-with-tcp-congestion-control-algorithm.html)

## Summary

Zalando's customer communication platform applies TCP-style AIMD (Additive Increase Multiplicative Decrease) congestion control at its ingestion point to shed load and prioritize critical messages. The Stream Consumer pulls events from Nakadi and watches RabbitMQ publish latency (P50) and publish errors as congestion signals. Each event type's throttle adjusts its consumption rate independently: higher-priority types increase faster and decrease less (e.g. +15/−20% for P1 vs +5/−60% for P3), so no central coordination is needed. After six months in production, order confirmations keep stable processing times while commercial messages absorb delays. RabbitMQ queues stay small, and backlog remains in Nakadi, where low-priority events can be discarded in an emergency.

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)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [Queues & messaging](https://swe.quest/tags/messaging.md) (Backend & APIs)
- [Microservices](https://swe.quest/tags/microservices.md) (Backend & APIs)

## Prerequisites

- message queues ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- TCP congestion control basics ([easy posts on Networking](https://swe.quest/tags/networking.md?difficulty=easy))
- event-driven architecture ([easy posts on Event-driven architecture](https://swe.quest/tags/event-driven.md?difficulty=easy))

## Keywords

AIMD, RabbitMQ, Nakadi, Kafka, Skipper, Zalando

## Related posts

- [Worker Backpressure (Part 1)](https://swe.quest/articles/worker-backpressure-part-1-6d000eabc0ad7f1d.md): Canva Engineering · 2026-09-17 · Medium · 11 min read · Resilience, Queues & messaging, SRE
  Canva added Worker Backpressure to its shared queue library: each worker records success/failure outcomes, a pluggable controller maintains a backoff factor (0.0 to 1.0) against a failure-rate set point, and the factor scales down how many messages the worker may poll and process concurrently.
- [Asynchronous computing at Meta: Overview and learnings](https://swe.quest/articles/asynchronous-computing-at-meta-overview-and-learnings-38025981fbc83823.md): Meta Engineering · 2023-01-31 · Medium · 10 min read · Serverless, Queues & messaging, Scheduling, Distributed systems, System design
  Meta re-architected Async tier, its serverless asynchronous computing platform running multi-trillion workloads per day, by splitting an overloaded Dispatcher into data-source-specific "tailers" and a source-agnostic scheduler.
- [From Event-Driven Chaos to a Blazingly Fast Serving API](https://swe.quest/articles/from-event-driven-chaos-to-a-blazingly-fast-serving-api-515d5b06058dbe2a.md): Zalando Engineering · 2025-03-06 · Medium · 8 min read · Caching, Load balancing, Event-driven architecture, Performance engineering, E-commerce
  Zalando replaced an event-driven pipeline that merged Product, Price and Stock events with a central Product Read API (PRAPI).
- [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.
- [Network Entitlement: A contract-based network sharing solution](https://swe.quest/articles/network-entitlement-a-contract-based-network-sharing-solution-a43fb82ce0fd8227.md): Meta Engineering · 2022-09-07 · Hard · 7 min read · Networking, Capacity planning, Multi-tenancy, Resilience, SRE
  Meta's backbone network treats bandwidth as a finite, reservable resource: each service gets a contracted bandwidth quota per region and class of service, with an SLO guarantee covering only traffic within that quota.

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)
