Netflix's Real-Time Service Map Pipeline

Netflix’s real-time service map pipeline uses a streaming-first, three-stage architecture to visualize complex service dependencies at scale.

Diagram illustrating Netflix's three-stage distributed aggregation pipeline for service topology mapping.
An overview of Netflix's three-stage distributed aggregation pipeline.· Netflix Tech Blog
Visual TL;DR
Stale Service MapsDriver
traditional batch processing delivered outdated service dependency views for incident response
Streaming-First ArchitectureCore
continuously ingests millions of network flow records and IPC metrics per second
From the article 2 mentionsThis led to the development of a streaming-first architecture, detailed on the Netflix Tech Blog.
Three-Stage PipelineCore
distributed architecture processes data through initial, network resolution, and final aggregation stages
From the article 7 mentionsThe network layer ingestion relies on a three-stage distributed aggregation pipeline.
Stage 1: Initial AggregationContext
aggregates raw network flow records and IPC metrics from various sources
Real-Time ObservabilityEffect
provides topology updates within tens of minutes for live events and rapid incident response
From the article 3 mentionsNetflix engineers grappled with the challenge of creating a unified, real-time view of their sprawling service dependencies.
Stage 2: Network ResolutionContext
resolves network intermediaries to identify direct service-to-service communication paths
From the articleThe IPC pipeline, unlike the network flow log pipeline, requires only a single stage because its data is already correctly partitioned at the application level, eliminating the need for intermediary resolution.
Unified Service MapOutcome
visualizes complex service dependencies at scale for comprehensive system understanding
From the article 2 mentionsThe core innovation is a distributed service map pipeline designed for scale and real-time updates.
Stage 3: Final AggregationContext
enriches aggregated data with service metadata for a complete dependency view
Contents(5)

Netflix engineers grappled with the challenge of creating a unified, real-time view of their sprawling service dependencies. Traditional batch processing methods proved inadequate, delivering data too stale for critical incident response. This led to the development of a streaming-first architecture, detailed on the Netflix Tech Blog.

StartupHub data

Companies working on this

Profiles of the companies named in this story, with funding and a one-liner from our database.

Netflix
$4.7B
The world's leading streaming entertainment service.

The core innovation is a distributed service map pipeline designed for scale and real-time updates. This system ingests millions of network flow records and IPC metrics per second, processing them through reactive pipelines with built-in backpressure handling.

Streaming-First for Real-Time Observability

Unlike batch systems that offer hourly or daily snapshots, Netflix’s pipeline continuously ingests data, providing topology updates within tens of minutes. This real-time capability is essential for live events and rapid incident response.

Backpressure is crucial for managing the data flow. When downstream systems slow down, upstream components are signaled to pause, preventing data loss or system crashes. This allows the pipeline to degrade gracefully under load.

A Multi-Layered Approach

The architecture employs physically separate topology layers for network flows, IPC metrics, and distributed tracing. Each layer is optimized for its specific data type and query patterns, offering independent evolution and unified querying.

The Three-Stage Aggregation Pipeline

The network layer ingestion relies on a three-stage distributed aggregation pipeline. This design tackles the complexity of network intermediaries, which obscure direct application-to-application dependencies in raw flow logs.

Stage 1: Initial Aggregation

Flow logs from multi-region Kafka streams are filtered, batched into 5-minute windows, and initial aggregators are created. This stage identifies flows involving intermediaries but doesn't resolve them.

Stage 2: Network Intermediary Resolution

This stage groups flows by intermediary (like load balancers or proxies). By redistributing aggregators based on intermediary identifiers, it joins incoming and outgoing flows to resolve direct application edges, effectively removing network hops from the topology view.

Stage 3: Final Aggregation and Enrichment

Resolved edges are further aggregated, enriched with external data like ownership and health metadata, converted into graph entities, and then persisted to the graph database with throttled writes.

This three-stage process, including a second redistribution step, prevents the creation of 'hot nodes' by spreading the load of resolution and enrichment across multiple instances.

Engineering Challenges and Lessons

The journey involved significant hurdles, including Kafka consumer lag, uneven traffic distribution ('hot nodes'), and memory management issues like garbage collection pauses and persistent heap pressure. Serialization complexity and stream processing inefficiencies also demanded solutions.

The team learned that scale changes everything in distributed systems. Optimizing one bottleneck at a time and recognizing that distribution is key to achieving scale were paramount.

For inter-stage communication, Server-Sent Events (SSE) were chosen over gRPC or message queues due to their lightweight nature, minimal serialization overhead, and natural integration with reactive streams, proving that industry best practices aren't universally applicable.

The IPC pipeline, unlike the network flow log pipeline, requires only a single stage because its data is already correctly partitioned at the application level, eliminating the need for intermediary resolution.

© 2026 StartupHub.ai. All rights reserved. You may not republish this article in full without a license. Search engines and AI research tools may crawl and summarize for reference. Bulk reproduction or model training requires a license. See our terms.
Daniel Singer

Written by

Daniel Singer

Editor, StartupHub.ai

Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.

More from Daniel Singer