# Interactive Deep Analytics Dashboard

- Speaker: [Yaniv Shalev](/wiki/speakers/yaniv-shalev.md)
- Event: [Reversim Summit 2015](/wiki/years/2015.md)
- Video: https://www.youtube.com/watch?v=klVngDBpceU
- Transcript: [/transcripts/2015/26-klVngDBpceU.md](/transcripts/2015/26-klVngDBpceU.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Data Science](/wiki/topics/data-science.md), [Scalability](/wiki/topics/scalability.md), [Data Engineering](/wiki/topics/data-engineering.md), [Architecture](/wiki/topics/architecture.md)

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

## Summary

The speaker shares insights and lessons learned from building interactive deep analytics dashboards for marketing and advertising data. The talk explores the engineering challenges of combining different data streams, high cardinality, and real-time updates while maintaining low latency and good user experience. The speaker advocates for designing around product and user requirements first, using a mix of database architectures, caching, and approximations rather than relying on a single silver bullet. Finally, the speaker introduces an open-source tool developed to share business logic and caching across different dashboard and reporting interfaces.

## Key points

- [2:33](https://www.youtube.com/watch?v=klVngDBpceU&t=153s) Building good dashboards requires balancing rendering speed, pre-processing, storage, redundancy, and infrastructure costs.
- [8:25](https://www.youtube.com/watch?v=klVngDBpceU&t=505s) Joining datasets with vastly different arrival speeds and SLAs at query time can heavily overload analytical databases, making Lambda-style streaming architectures necessary.
- [11:37](https://www.youtube.com/watch?v=klVngDBpceU&t=697s) Pre-joining entities that arrive on the same stream can significantly speed up data retrieval and improve compression when using column stores.
- [15:43](https://www.youtube.com/watch?v=klVngDBpceU&t=943s) High dimensionality and cardinality can break dashboards, but techniques like record limiting, sorting by metric, and exporting help maintain performance.
- [19:57](https://www.youtube.com/watch?v=klVngDBpceU&t=1197s) Massive Parallel Processing (MPP) databases struggle with high query concurrency, so query locality caching and backend sharing are essential.
- [23:08](https://www.youtube.com/watch?v=klVngDBpceU&t=1388s) Real-time UI elements like live counters can be efficiently approximated using periodic backend fetches combined with client-side extrapolation to reduce load.
- [26:49](https://www.youtube.com/watch?v=klVngDBpceU&t=1609s) An open-source tool called Hydro was created in Python to centralize business logic, multi-level caching, and data transformations across different reporting and dashboard engines.

## Takeaways

- Design analytics systems by starting from product and user experience requirements rather than forcing a single technology stack.
- Use a combination of streaming and batch architectures (Lambda architecture) to handle data sources with mismatched update frequencies.
- Do not aim for 100% exactness everywhere; use approximations, sampling, and extrapolations where they do not impact business value.
- Implement query caching and data sharing between widgets and pages to protect analytical databases from high concurrency loads.

## Questions this talk answers

- How do you handle joining fast-moving spend data and slower revenue data without overloading your analytical database?
- What strategies can be used to maintain sub-second dashboard response times when dealing with high cardinality dimensions?
- When is it acceptable to use client-side extrapolation instead of querying the backend for real-time dashboard metrics?

## Technologies

Vertica, Python, Cassandra, HBase, Hadoop

## Tags

analytics, big data, caching, dashboards, data architecture, performance optimization
