# Streaming BI

- Speaker: [Haggai Sachar](/wiki/speakers/haggai-sachar.md)
- Event: [Reversim Summit 2013](/wiki/years/2013.md)
- Video: https://www.youtube.com/watch?v=Yo5EKwpGLto
- Transcript: [/transcripts/2013/29-Yo5EKwpGLto.md](/transcripts/2013/29-Yo5EKwpGLto.md)
- Language: Hebrew and English · Type: talk · Level: intermediate
- Topics: [Data Engineering](/wiki/topics/data-engineering.md), [Data Science](/wiki/topics/data-science.md), [Architecture](/wiki/topics/architecture.md), [Distributed Systems](/wiki/topics/distributed-systems.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The talk discusses the architecture of streaming business intelligence systems that handle massive scale data processing and real-time analytics. The speaker explains how to implement the Lambda Architecture to combine batch processing using Hadoop with real-time speed layers using Storm and Kafka. The audience learns about the technical challenges of reconciling different data pipelines, dealing with distinct storage engines, and making product trade-offs to handle latency. Ultimately, the speaker highlights how technical architecture and product design must work together to deliver actionable insights to different internal and external personas.

## Key points

- [0:06](https://www.youtube.com/watch?v=Yo5EKwpGLto&t=6s) The speaker introduces streaming business intelligence and the Lambda Architecture developed by the creator of Storm.
- [5:42](https://www.youtube.com/watch?v=Yo5EKwpGLto&t=342s) The system serves three main personas: agents, agent managers, and campaign managers, each with different latency and data needs.
- [8:48](https://www.youtube.com/watch?v=Yo5EKwpGLto&t=528s) The Lambda Architecture divides big data processing into a batch layer, a serving layer, and a speed layer.
- [14:05](https://www.youtube.com/watch?v=Yo5EKwpGLto&t=845s) The speaker explains the concrete architecture implemented at their company, using Kafka for message bus ingestion, Hadoop for batch, and Storm for real-time.
- [18:26](https://www.youtube.com/watch?v=Yo5EKwpGLto&t=1106s) The system utilizes Vertica for high-performance analytical queries and Cassandra for low-latency real-time storage.
- [22:54](https://www.youtube.com/watch?v=Yo5EKwpGLto&t=1374s) A major challenge in Lambda Architecture is maintaining consistent business logic across both the batch and real-time processing pipelines.
- [29:31](https://www.youtube.com/watch?v=Yo5EKwpGLto&t=1771s) Another architectural friction point is bridging the gap between SQL-based analytical databases and NoSQL real-time stores.
- [37:23](https://www.youtube.com/watch?v=Yo5EKwpGLto&t=2243s) Many data processing difficulties are best solved through product trade-offs rather than purely technological solutions.

## Takeaways

- Adopt the Lambda Architecture to successfully balance deep historical analysis with low-latency real-time insights.
- Be aware of the business logic divergence issue when running parallel batch and stream processing pipelines.
- Address complex data correlation and distinct count challenges through smart product design and UI trade-offs rather than over-engineering the backend.

## Questions this talk answers

- How can you implement the Lambda Architecture to support both real-time operational needs and deep historical analytics?
- What are the best strategies to resolve discrepancies in business logic between batch and stream processing layers?
- How do you choose between SQL and NoSQL databases when designing a dual-layer data serving architecture?

## Technologies

Storm, Hadoop, Kafka, Vertica, Cassandra

## Tags

architecture trade-offs, big data, data processing, lambda architecture, real-time analytics, streaming bi
