internalsGet Pro

Module 18 · Lesson 5 of 13Pro

Case: Razorpay’s 21% cut to its Spark bill

Level
Intermediate
Topic
Scale, performance and cost
Reading time
16 min

When you finish this page you can

  1. Split a Spark bill into node-hours and price per node-hour, and place each of Razorpay’s changes on one of them.
  2. Explain why dynamic allocation slowed some of Razorpay’s jobs, and when a fixed executor count wins.
  3. Say why a Spark driver must never run on Spot capacity, and how Razorpay kept it off.
  4. Read the case’s 11%, 13–15% and 21% figures and say what each one does and doesn’t measure.
  1. Spark architecture: driver, executors and tasks17 min
  2. Data platform costs: storage, compute and transfer17 min

A platform straining at a petabyte a day

Razorpay, the Indian payments company from Razorpay’s fraud checks in 200 ms with Flink, processes more than 1 PB of data a day. Its data platform ran on a third-party solution, and it had started to strain under that load.1 The team had to choose: keep scaling that solution, or rebuild on a platform it could tune itself.

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