internalsGet Pro

Module 13 · Lesson 3 of 10Pro

Case: Zerodha’s back office on ClickHouse

Level
Intermediate
Topic
OLAP and real-time analytics
Reading time
17 min

When you finish this page you can

  1. Describe Zerodha’s 2021 reporting database on PostgreSQL and say why its workload suited a columnar engine.
  2. Explain how a sorted column store with a sparse index reads one client’s year of trades without scanning the table.
  3. Turn a reported percentage such as “120% improvement” into the plain change in time, size or memory it describes.
  4. Decide which of Kartly’s data has the shape that made ClickHouse pay off at Zerodha, and which doesn’t.
  1. Row and columnar storage: why layout matters13 min
  2. OLAP engines: answering analytical questions fast13 min
  3. Real-time OLAP: ClickHouse, Druid and Pinot17 min

20 TB became 4 TB, and some queries got 1000× faster

In July 2024, Zerodha, an Indian stock broker, published a list of its recent backend upgrades. One line says it moved more than 20 TB of back-office financial data from PostgreSQL to . The data now takes 4 TB, and query performance “increased 1000x … in many scenarios”.1

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan