انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-028-L04

مجموعات المستهلكين والإزاحات

  • الدرس 4 من 9
  • Mid-level
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

explain how consumers share work and track position.

الموضوعات المخطط لها

  • A consumer group shares a topic's partitions; each partition goes to one member. Different groups each get all records.
  • Offsets record the group's progress per partition, stored in the internal __consumer_offsets topic.
  • Commit after processing for at-least-once; commit before processing risks loss.
  • Rebalancing reassigns partitions when members join, leave, or time out; processing pauses briefly.
  • More consumers than partitions leaves some idle.
  • Tune max.poll.interval.ms so slow processing does not trigger rebalances.
تفاصيل المخطط المبدئي

عرض عملي

group inventory with 2 consumers over 3 partitions, plus group payments reading the same topic.

اختبر فهمك

What happens if a group has more consumers than partitions?

أظهر الإجابة

Extra consumers stay idle.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.