مجموعات المستهلكين والإزاحات
في هذا الدرس 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_offsetstopic. - 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.msso 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.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.