Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Sources

Datadog Engineering

2026

20× the CI traffic without getting slower: How we rebuilt Git serving at Datadog

Case study 13 min +130 XP

Datadog replaced CI fetches from a replicated Gitaly/Praefect cluster with gitretriever, a fleet of independent Git mirrors that poll GitHub per changed ref and fan packfiles out to autoscaled relays over a gRPC signaling stream plus HTTP.

When failover isn’t safe: Building high-availability PostgreSQL on Kubernetes

Case study 22 min +220 XP

A staging gameday simulating zonal network latency left Datadog's Kubernetes-hosted PostgreSQL clusters stuck: with asynchronous replication, every standby exceeded Patroni's maximum_lag_on_failover, so no failover candidate could be promoted safely.

Steganography at scale: Embedding share URLs in Datadog widget screenshots

Case study 20 min +200 XP

Datadog embeds an 8-byte snapshot ID invisibly into the 1 px border of every dashboard widget so screenshots can be resolved back to the full widget context (queries, time range, template variables), with definitions cached in Redis for one hour keyed by org ID plus widget ID.

2025

Failure is inevitable: Learning from a large outage, and building for reliability in depth at Datadog

Incident 12 min +120 XP

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.

From hand-tuned Go to self-optimizing code: Building BitsEvolve

Case study 17 min +170 XP

Datadog cut CPU in Go hot paths by removing compiler bounds checks in NormalizeTag (25% faster, 0.75% service CPU) and adding an ASCII fast path to NormalizeTagArbTagValue (90% faster, hundreds of thousands of dollars in projected annual savings), guided by production data showing nearly all inputs were ASCII.

Scaling down to speed up: How we improved efficiency of live process metrics by 100x

Case study 8 min +80 XP

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.

How Go 1.24’s Swiss Tables saved us hundreds of gigabytes

Deep dive 17 min +170 XP

Go 1.24's new map implementation, based on Swiss Tables and extendible hashing, cut roughly 500 MiB of live heap (about 1 GiB of RSS with GOGC=100) from a 3.5-million-entry routing cache map, enough to more than offset a separate Go 1.24 mallocgc memory regression.

How we built a real-time, client-side noise suppression library without server dependencies

Case study 13 min +130 XP

dtln-rs is an open source Rust library that runs the DTLN (Dual-Signal Transformation LSTM Network) noise suppression model entirely on the client, with WebAssembly, Node.js and native C-ABI targets for WebRTC apps.

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

Case study 13 min +130 XP

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.

Breaking up a monolith: How we’re unwinding a shared database at scale

Case study 20 min +200 XP

Datadog is splitting its large shared Postgres database into independently owned instances through a three-phase plan: logical separation into per-domain private schemas with explicit ACLs, access reduction so only owning teams query their tables directly, and physical separation onto managed OrgStore instances.

Squeezing every millisecond: How we rebuilt the Datadog Lambda Extension in Rust

Case study 9 min +90 XP

Datadog rewrote its AWS Lambda Extension from a Go build of the full Datadog Agent into a purpose-built Rust sidecar (Project Bottlecap), cutting cold start overhead from about 450 ms to 70 ms, memory from 128 MiB to 77 MiB, and binary size from 55 MB to 7 MB.

Achieving relentless Kafka reliability at scale with the Streaming Platform

Case study 10 min +100 XP

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.

2024

2023

How we migrated our acceptance tests to use Synthetic Monitoring

Case study 8 min +80 XP

Datadog's Frontend Developer Experience team replaced a flaky, hand-scripted Puppeteer acceptance test suite (565 tests, 100k lines, 6 CI jobs, 35 machine-minutes per commit) with recorded Synthetic Monitoring tests run from CI via a new CLI, synthetics-ci, later generalized into datadog-ci.

2023-03-08 incident: A deep dive into our incident response

Incident 17 min +170 XP

Datadog's March 8, 2023 global outage, triggered by an automatic systemd upgrade that broke Kubernetes nodes across isolated regions on multiple clouds, tested an incident process built on out-of-band monitoring, senior incident-commander rotations, blameless culture and a 30-minute customer update cadence.

2022

2021

2020

The quest for software engineering knowledge.

Look:
Layout: