انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهSRB-006-L02

استراتيجية التجزئة

  • الدرس 2 من 8
  • Senior B
في هذا الدرس 4 موضوعات

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

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

في هذا الدرس

choose partition count and keys with growth and ordering in mind.

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

  • Partitions are the unit of parallelism: a consumer group can have at most one active consumer per partition.
  • The key decides ordering: events with the same key stay ordered in one partition.
  • Changing partition count later breaks key-to-partition mapping; plan headroom.
  • Beware hot keys; avoid keys that concentrate traffic.
تفاصيل المخطط المبدئي

عرض عملي

a sizing formula: partitions >= max(target throughput / per-partition throughput, target throughput / per-consumer throughput), with a growth factor; example for shipment events keyed by shipmentId.

اختبر فهمك

Why is changing partition count risky?

أظهر الإجابة

Key-to-partition mapping changes and ordering per key can break.

التطبيق

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

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

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

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