Kafka ले एक partition को भित्र अर्डरिङ गयारान्टी दिन्छ तर partitions को बीच नहीं — यो एक महत्वपूर्ण अवधारणा हो। सम्बन्धित events को अर्डरिङ पाउनको लागि, तपाईं तिनलाई एक ही partition मा रुट गर्नुहुन्छ (एक ही key को माध्यमबाट)। अर्डरिङ बुझ्नु सङ्ख्यात्मकताको लागि महत्वपूर्ण छ।
Per-partition अर्डरिङ
Kafka guarantees:
✓ ORDER WITHIN a partition → events in a partition are strictly ordered (by offset);
consumers read them in order
✗ NO order ACROSS partitions → events in different partitions have no relative order
guarantee (they're processed in parallel by different consumers)
→ this is a FUNDAMENTAL Kafka property (and a common source of misunderstanding)
