internalsGet Pro

Module 10 · Lesson 7 of 13Pro

Flink architecture: jobs, tasks and slots

Level
Intermediate
Topic
Stream processing with Flink
Reading time
17 min

When you finish this page you can

  1. Say what the JobManager and each TaskManager do for a running Flink job, and what happens when either one fails.
  2. Turn a job’s operators into chained tasks and subtasks, and count the task slots it needs.
  3. Explain how keyBy sends each key to one subtask, and why more parallelism doesn’t spread a hot key.
  4. Size a Flink job’s parallelism and TaskManagers for a traffic peak, and set them in a FlinkDeployment.

Builds on 4 lessons

Start with lesson 114 min
  1. Stream processing: computing on data in motion14 min
  2. Stateful stream processing and state backends18 min
  3. Checkpoints: recovering without losing results18 min
  4. Spark architecture: driver, executors and tasks17 min

60 operator copies on 12 slots

is an online store in India. Its apps send about 200 million click events a day to a Kafka topic, kartly.clicks. A job called live-dashboard reads them and counts product views and add-to-carts per product every 10 seconds. It writes those counts to , where the festival dashboard shows them less than a minute after the clicks happen.

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