Data Engineering · Module 13
OLAP and real-time analytics
- Lessons
- 10
- Free
- 0
- Reading
- ~3 h
Your progress
0 / 10 lessons done
Sign in to trackLessons
- OLAP engines: answering analytical questions fastSooner or later someone asks for numbers that are seconds old, on a screen many people watch. Knowing what an OLAP engine does differently from a warehouse tells you when a second database is worth running, and when it isn’t.
- Real-time OLAP: ClickHouse, Druid and PinotLive dashboards, seller analytics pages and in-app counters all need numbers that are seconds old and answers in under a second. Real-time OLAP engines exist for that job, and they trade freshness, operations and flexibility in different ways.
- Case: Zerodha’s back office on ClickHouseTeams often read a vendor or company post that says “1000× faster” and wonder whether to switch engines. This case shows what a large real move looked like, what produced the gains, and how to check whether your own data has the same shape.
- DuckDB: fast analytics from laptop to serverMost data teams have questions too new or too one-off for the warehouse model. DuckDB answers them straight from the lake files, but only if you put it on the right machine and keep it out of jobs that need many writers or many users.
- Pre-aggregation and rollupsLive dashboards repeat the same sum many times a second. A rollup does that sum once as data arrives, but it also decides, for good, which questions the stored data can still answer.
- Serving analytics in products: dashboards and APIsSooner or later a product team asks to show live numbers to customers or to another team’s service. The data engineer decides what those callers can ask, what each one may see, and how much load they can put on a cluster that also serves the company’s own dashboards.
- Approximate queries for speed at scaleUnique users and p95 times are on almost every dashboard, and computed exactly over billions of rows they are the queries that run out of memory. Knowing how big the approximation’s error is, and where it is not allowed, lets you make them fast without putting a wrong number in a finance report.
- BI tools and how they query dataDashboards are often the largest user of a warehouse, and nobody writes their SQL by hand. Knowing what the BI tool sends, and which cache can answer it, is how a data engineer keeps dashboards fast and the bill flat.
- Choosing an analytics engineEvery new dashboard, panel or model request quietly picks an engine. Picking by habit sends seller traffic to a warehouse built for finance, or finance numbers to an engine built for counters; naming the workload first avoids both.
- Design: a live sales dashboard for a festival saleA live screen in front of many people is where streaming, an analytics database and finance’s numbers meet. Each part may work alone, and the screen can still be slow, overloaded or disagree with the official report. This lesson puts the whole path on one page, with what each failure costs.
Practise with
No tools or paper guides for this module yet.
Terms this module teaches 1
Open glossaryClickHouse
An open-source column-oriented database built to answer analytical queries over large tables quickly.