Home / Companies / Mux / Blog / Post Details
Content Deep Dive

Processing CDN logs exactly-once with Kafka transactions

Blog post from Mux

Post Details
Company
Mux
Date Published
Author
Drew Rodman
Word Count
2,997
Company Posts That Month
1
Language
English
Hacker News Points
-
Post removed?
No
Summary

Mux Video is a platform that enables the building of video-centric applications with global audiences by partnering with Content Delivery Network (CDN) providers such as Fastly, Cloudflare, and Highwinds. The platform leverages these services to deliver video, thumbnails, subtitles, and other content more efficiently from its origin, reducing costs and improving the end-user experience. To monitor performance and invoice customers correctly, Mux Video processes request level logs retrieved from CDN providers through an Apache Kafka pipeline that ensures Exactly-Once Semantics (EOS). The system was re-architected to scale better by separating log file ingestion and processing into two parts: the Leader responsible for figuring out which log files need ingesting, and Workers responsible for downloading, parsing, and writing each individual log to Kafka. This design allows the use of Kafka transactions to prevent all records from being written until the corresponding offsets have been committed to Kafka, ensuring data consistency and accuracy in billing.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Kubernetes 2 1,237 134 58 +94%
Real-time 2 937 294 99 -19%
Data Pipeline 1 247 55 22 +18%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.