internalsGet Pro

Module 10 · Lesson 11 of 13Pro

Scaling and operating streaming jobs

Level
Advanced
Topic
Stream processing with Flink
Reading time
18 min

When you finish this page you can

  1. Find the operator that slows a backpressured Flink job from each subtask’s busy, idle and backpressured time.
  2. Explain why more parallelism doesn’t help a hot key, and remove the hot spot with two-phase aggregation.
  3. Explain why checkpoints and savepoints slow down under backpressure, and choose between unaligned checkpoints, buffer debloating and fixing the bottleneck.
  4. Rescale a stateful job from a savepoint with the Flink Kubernetes Operator, and decide what its autoscaler should and shouldn’t do around a planned peak.

Builds on 4 lessons

Start with lesson 518 min
  1. Stateful stream processing and state backends18 min
  2. Checkpoints: recovering without losing results18 min
  3. Flink architecture: jobs, tasks and slots17 min
  4. Operating Kafka: lag, scaling and broker failures18 min

The dashboard is two minutes behind

is an online store in India. Its apps send every product view and add-to-cart to the Kafka topic kartly.clicks. A Flink job, live-dashboard, counts them per product in 10-second windows and writes the counts to ClickHouse. Merchandisers watch that dashboard during sales to move stock and banners. Its budget is under 1 minute behind.

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