# Behind the Scenes: Evolving Netflix's Ads Event Pipeline for Live -- Part II

DevFeed: [Behind the Scenes: Evolving Netflix's Ads Event Pipeline for Live -- Part II](<https://devfeed.tech/articles/behind-the-scenes-evolving-netflix-s-ads-event-pipeline-for-live-part-ii-87081.md>)

Original publisher: [Read original article](<https://netflixtechblog.com/behind-the-scenes-evolving-netflixs-ads-event-pipeline-for-live-part-ii-826ebf9ad9fb?source=rss----2615bd06b42e---4>)

Author: Netflix Technology Blog

Published: 2026-10-14T19:51:35Z

Content type: article

Language: en

Sources: [Netflix](<https://devfeed.tech/sources/netflix-techblog-medium.md>)

Topics: [Apache Flink](<https://devfeed.tech/topics/apache-flink.md>), [Event-Streaming](<https://devfeed.tech/topics/event-streaming.md>), [Data pipelines](<https://devfeed.tech/topics/data-pipelines.md>), [Apache Kafka](<https://devfeed.tech/topics/apache-kafka.md>), [Production Engineering](<https://devfeed.tech/topics/production-engineering.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [apache-flink](<https://devfeed.tech/tags/apache-flink.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [join](<https://devfeed.tech/tags/join.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [netflix](<https://devfeed.tech/tags/netflix.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [pipelines](<https://devfeed.tech/tags/pipelines.md>), [processing](<https://devfeed.tech/tags/processing.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [security](<https://devfeed.tech/tags/security.md>), [security-practices](<https://devfeed.tech/tags/security-practices.md>)

## AI overview

Netflix rebuilt its Ads Event Publisher around Apache Flink stateful stream processing, replacing a database lookup with a real-time join of ad-serving responses and client events. The change removes a registry write from the ad-serving critical path, supports live-stream traffic, and adds in-stream deduplication and recovery for late events. The article also describes cross-region routing and a gradual rollout that compared the new and legacy pipelines.

## Source excerpt

By Yogesh Nagarur Introduction In Part 1 of this series, we shared how Netflix built the Ads Event pipeline and approached it as a system design problem: replacing fragmented pipelines with a centralized collection, enrichment, and a standard data contract. The result was Ads Event Publisher, the system that collects ad telemetry from client devices, enriches it with the context of the ad that was actually served, and publishes a single, unified stream of ad events to every downstream consumer: frequency capping, metrics, billing, measurement partners, and reporting. Any member viewing or account details that move through this pipeline end-to-end are encrypted and handled in accordance with Netflix's strict privacy and security practices to safeguard member PII. If ad serving is the "brain" and ad events are the "heartbeats" that feed it, then enrichment is what gives each heartbeat its meaning, turning a bare "[Somebody] watched an ad to completion" signal into "this campaign, this creative, at this price, for this break." Part 1 described that enrichment step as a single box in the architecture. This post is about what was inside that box, and why we rebuilt it. Part 1 ended with a look at what was on the horizon: ads on live streams, de-duplication, and richer data signals. A single project delivered all three by rebuilding the Ads Event Publisher around stateful stream processing. We replaced a database lookup with a real-time streaming join in Apache Flink, which let the system scale for Live, took a dependency off the critical path, and replaced the engine of a high-traffic pipeline without downtime. Let's dive in. A quick recap: enrichment and the Metadata Registry When an ad is served, the ad server knows everything about it: the campaign, the creative, the price of the impression, the targeting context, and the tracking URLs that measurement partners expect us to fire. The client device, by contrast, knows almost nothing: just an opaque token and when to se