---
title: "How we scaled fast, reliable configuration distribution to thousands of workload containers"
description: "Datadog replaced on-demand per-tenant config loading (database reads plus Kafka cache-invalidation messages) with a context-publisher that snapshots all tenants' configuration into RocksDB blobs in cloud storage and streams individual updates over Kafka."
url: "https://swe.quest/articles/how-we-scaled-fast-reliable-configuration-distribution-to-thousands-of-workload-e29683144db0f208"
canonical: "https://www.datadoghq.com/blog/engineering/scaling-config-delivery-containers/"
source: "Datadog Engineering"
published: "2025-06-17"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["configuration","distributed-systems","resilience","multi-tenancy","caching"]
---

# How we scaled fast, reliable configuration distribution to thousands of workload containers

A post on [Datadog Engineering](https://swe.quest/sources/datadog.md), published 2025-06-17, 13 min read, Case study. Original: [https://www.datadoghq.com/blog/engineering/scaling-config-delivery-containers/](https://www.datadoghq.com/blog/engineering/scaling-config-delivery-containers/)

## Summary

Datadog replaced on-demand per-tenant config loading (database reads plus Kafka cache-invalidation messages) with a context-publisher that snapshots all tenants' configuration into RocksDB blobs in cloud storage and streams individual updates over Kafka. Because context data is only megabytes in total and changes thousands of times per day, every workload container can hold a full local replica. Containers download the blob at startup, apply streamed updates, and refresh the snapshot roughly every 10 minutes, so they keep working through a full outage of the central database. The design deliberately puts a tiny, externally unreachable service in charge and avoids bimodal fallback paths that would go untested and could overload the database.

Written by swe.quest, not by the author.

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

## Topics

- [Configuration management](https://swe.quest/tags/configuration.md) (Reliability & operations)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)

## Prerequisites

- Kafka basics ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- caching and invalidation ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))
- multi-tenant services

## Keywords

Datadog, RocksDB, Kafka, gRPC, context-publisher

## Related posts

- [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.
- [Scaling down to speed up: How we improved efficiency of live process metrics by 100x](https://swe.quest/articles/scaling-down-to-speed-up-how-we-improved-efficiency-of-live-process-metrics-by-db520ecc99ab0c49.md): Datadog Engineering · 2025-08-12 · Medium · 8 min read · Observability, Scaling, Cost optimization, Queues & messaging, System design
  Datadog cut real-time process and container metric traffic by about 100x by enabling 2-second live collection only on hosts whose processes a user is actually viewing (at most 50 per user), instead of on every host in the tenant.
- [Making multiplayer more reliable](https://swe.quest/articles/making-multiplayer-more-reliable-3fb296ccf52c818b.md): Figma · 2022-10-20 · Medium · 10 min read · Real-time systems, Storage systems, Resilience, Rust, Cloud platforms
  Figma added a write-ahead journal to its in-memory multiplayer service, which previously persisted files only via full checkpoints to S3 every 30–60 seconds.
- [How We Rebuilt Our Log Storage and Search Infrastructure for Scale](https://swe.quest/articles/how-we-rebuilt-our-log-storage-and-search-infrastructure-for-scale-ff36f77144f2ff50.md): Railway · 2022-01-20 · Medium · 3 min read · Observability, System design, Scaling, RPC & gRPC, GraphQL
  Railway replaced per-request Docker log polling (every 2 seconds, straining the Docker daemon across 500,000+ deployments) with a centralized log pipeline.
- [Keep the monolith, but split the workloads](https://swe.quest/articles/keep-the-monolith-but-split-the-workloads-a46b5ee6a5f1e352.md): incident.io · 2023-04-12 · Medium · 9 min read · Resilience, System design, PostgreSQL, Go, Microservices
  A Go monolith can get much of the reliability isolation of microservices by splitting workloads into separate deployments of the same binary, instead of breaking it into services.

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)
