---
title: "Achieving relentless Kafka reliability at scale with the Streaming Platform"
description: "Datadog runs hundreds of Kafka clusters with millions of partitions and built the Streaming Platform, a control layer that decouples producers and consumers from specific clusters through \"Streams\" spanning clusters, AZs and Kubernetes environments."
url: "https://swe.quest/articles/achieving-relentless-kafka-reliability-at-scale-with-the-streaming-platform-ccf96914fd7cb7a9"
canonical: "https://www.datadoghq.com/blog/engineering/streaming-platform-kafka-custom-abstractions/"
source: "Datadog Engineering"
published: "2025-02-19"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["messaging","resilience","distributed-systems","scalability","rust"]
---

# Achieving relentless Kafka reliability at scale with the Streaming Platform

A post on [Datadog Engineering](https://swe.quest/sources/datadog.md), published 2025-02-19, 10 min read, Case study. Original: [https://www.datadoghq.com/blog/engineering/streaming-platform-kafka-custom-abstractions/](https://www.datadoghq.com/blog/engineering/streaming-platform-kafka-custom-abstractions/)

## Summary

Datadog runs hundreds of Kafka clusters with millions of partitions and built the Streaming Platform, a control layer that decouples producers and consumers from specific clusters through "Streams" spanning clusters, AZs and Kubernetes environments. A custom coordinator, the Assigner, replaces Kafka's timeout-based group coordination with metric-driven, seconds-scale rebalancing and live failovers that create a new topic and drain the old one. Head-of-line blocking is removed with priority lanes, a dead-letter lane for poison pills, and multi-range offset tracking stored in commit metadata, which also carries ingestion timestamps to compute real-time time lag from \_\_consumer\_offsets. After zstd decompression bombs crashed consumers, the team built libstreaming, a Rust Kafka client with bindings for other languages, and rejected a gRPC proxy because of throughput and latency costs.

Written by swe.quest, not by the author.

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

## Topics

- [Queues & messaging](https://swe.quest/tags/messaging.md) (Backend & APIs)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)
- [Rust](https://swe.quest/tags/rust.md) (Languages)

## Prerequisites

- Kafka topics, partitions and consumer groups ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- Kafka offset commits ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))

## Keywords

Apache Kafka, Streaming Platform, Assigner, libstreaming, Zstandard, rdkafka, Datadog

## Related posts

- [Building Self-driving Kafka clusters using open source components](https://swe.quest/articles/building-self-driving-kafka-clusters-using-open-source-components-f376c07215769703.md): Slack Engineering · 2022-02-11 · Medium · 11 min read · Queues & messaging, Scaling, SRE, Chaos engineering, Infrastructure as code
  Slack standardized roughly 10 Kafka clusters (0.7 PB, 6.5 Gbps peak) onto Kafka 2.0.1 and automated their operation with Chef, Terraform ASGs, Consul-assigned Zookeeper IDs, Cruise Control, Kafka Manager and a Prometheus offset exporter.
- [How we built reliable log delivery to thousands of unpredictable endpoints](https://swe.quest/articles/how-we-built-reliable-log-delivery-to-thousands-of-unpredictable-endpoints-0cf63fb1f4da9cac.md): Datadog Engineering · 2025-06-23 · Medium · 14 min read · Observability, System design, Multi-tenancy, Resilience, Queues & messaging
  Datadog's Log Forwarding avoids head-of-line blocking from Kafka's per-partition FIFO ordering by moving logs out of Kafka early into cloud object storage, grouped by destination.
- [How we scaled metrics aggregation by moving durable state into storage](https://swe.quest/articles/how-we-scaled-metrics-aggregation-by-moving-durable-state-into-storage-09bea3fd544962da.md): Datadog Engineering · 2026-11-17 · Medium · 12 min read · Stream processing, Scaling, Observability, Storage engines, Distributed systems
  Datadog's metrics aggregation service, which merges DDSketch distributions to reduce tag dimensions, went through three generations as volume grew roughly 10× each time.
- [How We Built Automated Capacity Testing for Kafka Consumers](https://swe.quest/articles/how-we-built-automated-capacity-testing-for-kafka-consumers-bca74c5a1d624617.md): Booking.com Engineering · 2026-09-14 · Medium · 7 min read · Queues & messaging, Capacity planning, Resilience, Testing, SRE
  Booking.com extended its HTTP capacity-testing platform to Kafka consumers by using partition assignment as the load knob: a custom priority-aware partition assignor shifts extra partitions onto one target instance step by step, reproducing failure-induced load concentration without killing healthy consumers.
- [Failure is inevitable: Learning from a large outage, and building for reliability in depth at Datadog](https://swe.quest/articles/failure-is-inevitable-learning-from-a-large-outage-and-building-for-reliability-917bd748ed64f6fb.md): Datadog Engineering · 2025-10-15 · Medium · 12 min read · Resilience, Incidents & postmortems, SRE, Kubernetes, Chaos engineering
  A March 2023 unsupervised global update knocked out connectivity to 50–60% of Datadog's Kubernetes nodes, yet the platform appeared fully down because services were designed to stop rather than show partial data.

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)
