Inside Datadog: Building a Distributed In-memory Caching Service
summary
Datadog builds Ephemera, a managed distributed in-memory caching service using Redis under the hood, a gRPC thin client, Temporal workflows, Maglev consistent hashing and Datadog’s Watermark pod autoscaler. It serves tens of millions of requests per second, with client p50 ≈ 1.1 ms and p99 ≈ 8 ms, and availability around 99.995%. Ephemera enforces short TTLs (default 1 hour), does load shedding and autoscaling, isolates tenants, offers self‑service Helm deployments, and successfully replaces scattered Redis ops with a reliable, opinionated cache.
AI-written summary · about
chapters (42)
- 0:00Two Hard Things in Computer Science
- 0:38What is a Cache
- 1:02Browser Cache
- 1:24Hardware Caches
- 1:48Global Cache
- 2:06Content Delivery Network
- 2:59Inmemory Caching
- 3:12Remote Caching
- 4:26Caching Risks
- 5:08Distributed Remote Caching
- 6:50Datadog Caching
- 7:21Original Datadog Caching
- 8:34Amazon Elastic Caching
- 9:10Kubernetes
- 9:30fragmentation
- 10:36reducing entropy
- 11:15stepping back
- 11:35challenges
- 12:10Ephemera
- 13:18Ephemera is Boring
- 13:40The Design Process
- 14:20Feature Categories
- 15:05Reliability
- 16:04Simple API
- 16:30Ephemeral
- 17:33Selfservice
- 18:29Scale
- 19:09Nonjurable
- 19:44Load shedding
- 20:40Isolation
- 21:51Size
- 22:41System Architecture
- 22:54Ephemeral installation
- 23:06Scaling
- 23:34API Server
- 24:28Maglev
- 26:53Adoption
- 27:43Endtoend architecture
- 28:17Wrap up
- 28:35Chaos Engineering
- 29:54Two takeaways
- 30:41Questions
