internalsGet Pro

Module 09 · Lesson 6 of 14Pro

Share groups: using Kafka as a queue

Level
Intermediate
Topic
Event streaming with Kafka
Reading time
17 min

When you finish this page you can

  1. Explain why a consumer group stalls on a job queue with uneven job times, and why it can’t use more workers than partitions.
  2. Trace one record through a share group, from acquisition under a lock to accept, release or reject, and say what the delivery count limit does.
  3. Set a share group’s lock duration, delivery limit and dead-letter topic for jobs that take up to 30 seconds.
  4. Choose between a share group, a consumer group and a separate queue service, and say which version facts change the choice.

Builds on 2 lessons

Start with lesson 217 min
  1. Kafka in practice: topics, partitions and offsets17 min
  2. Kafka consumers: groups, commits and rebalancing17 min

Thirty workers, six of them busy

is an online store in India. Sellers upload product photos, and each upload becomes a job on the Kafka topic kartly.image-jobs. A worker downloads the photo, checks it, resizes it to four sizes and writes them to S3. A product can’t go live until its photos pass.

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