Kafka قوية لكن لديها مشاكل شائعة — سوء فهم وأخطاء حول التقسيم والترتيب وسلوك المستهلك ودلالات التسليم والعمليات. فهم هذه المشاكل يساعد على تجنب المشاكل واستخدام Kafka بشكل صحيح.
مشاكل التصميم والتقسيم
✗ Too FEW partitions → limits consumer parallelism (can't scale consumption beyond
partition count); too MANY → overhead, rebalancing pain → plan partition count carefully
✗ Wrong PARTITION KEY → uneven distribution (hot partitions) or wrong ordering scope →
choose a key for even distribution AND the ordering you need
✗ Expecting GLOBAL ordering → Kafka only orders WITHIN a partition (a common misunderstanding)
✗ Adding partitions changes key→partition mapping → breaks ordering for keys (be careful)
