Skip to main content
Make Data Work
Oct 15–17, 2014 • New York, NY

Building Real-time Data Products at LinkedIn with Apache Samza

Martin Kleppmann (University of Cambridge)
5:05pm–5:45pm Thursday, 10/16/2014
Hadoop Platform
Location: Hall A 23/24
Average rating: ****.
(4.71, 14 ratings)
Slides:   1-PDF 

The world is going real-time. MapReduce, SQL-on-Hadoop and similar batch processing tools are fine for analyzing and processing data after the fact — but sometimes you need to process data continuously as it comes in, and react to it within a few seconds or less. How do you do that at Hadoop scale?

Apache Samza is an open source stream processing framework designed to solve these kinds of problems. It is built upon YARN/Hadoop 2.0 and Apache Kafka. You can think of Samza as a real-time, continuously running version of MapReduce.

Samza has some unique features that make it powerful. It provides high performance for stateful processing jobs, including aggregation and joins between many input streams. It is designed to support an ecosystem of many different jobs written by different teams, and it isolates them from each other, so that one badly behaved job can’t affect the others.

At LinkedIn, we have been using Samza in production for some time, both for internal analytics purposes and for data products that are served on the live site. In this talk, we’ll discuss our experience of working with Samza. You’ll learn about:

  • What kinds of real-time data problems you can solve with Samza
  • How Samza reliably scales to millions of messages per second
  • How Samza compares to other stream processing frameworks
  • How Samza can help collaboration between different data science, product, and engineering teams within an organization
  • How to avoid implementing the same data pipeline twice (once for offline/batch processing and once for real-time/stream processing)
  • Lessons we learnt on how to structure real-time data pipelines for scale and flexibility
Photo of Martin Kleppmann

Martin Kleppmann

University of Cambridge

Martin is committer on Apache Samza (a distributed stream processing framework), software engineer at LinkedIn, and author at O’Reilly (currently writing a book on designing data-intensive applications). Previously he co-founded and sold two startups, Rapportive and Go Test It. His technical blog is at, and he’s @martinkl on Twitter.