Netflix TechBlog
Read post

Building Service Topology at Scale: Architecture, Challenges, and Lessons Learned

Netflix engineers share a detailed account of building a real-time service dependency map at scale. The system combines eBPF network flows, IPC metrics, and distributed tracing into separate graph layers. A three-stage distributed aggregation pipeline resolves network intermediaries (load balancers, NAT gateways) into clean application-level edges using consistent hashing and Server-Sent Events for inter-stage communication. Key production challenges included Kafka consumer lag, hot nodes receiving 100x normal traffic, JVM garbage collection pressure from immutable data structures, and reactive streams complexity with Pekko. Solutions included splitting two-stage into three-stage processing, switching from gRPC to SSE, using mutable aggregators on the hot path, and tuning Kafka fetch parameters. A time-travel feature enables historical topology queries using time-windowed aggregator snapshots combined with property-level mutation tracking. The post emphasizes measurement-driven optimization and willingness to break conventional wisdom at extreme scale.

    #distributed-systems#apache-kafka#scala
Jul 14•26m read time•From netflixtechblog.com
Post cover image
Table of contents
IntroductionArchitecture Deep-Dive: Building for Streaming and ScaleThe V1 Journey: Major Challenges at Production ScaleGet Netflix Technology Blog ’s stories in your inboxChallenge 4: Reactive Streams ComplexityV2 Evolution: Continuous RefinementTime Travel: Continuous Topology ReconstructionLessons for Distributed SystemsCurrent State and ImpactConclusionAcknowledgements
28.4K Impressions
Netflix TechBlog's image
Netflix TechBlog

The Netflix Tech Blog provides insights into the engineering practices, architecture, and innovation...

597 Followers

•

1.2K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard