Kafka გარანტირებს დალაგებას პარტიციის შიგნით, მაგრამ არა პარტიციებს შორის — ეს არის კრიტიკული კონცეფცია. დაკავშირებული ღონისძიებების დალაგების მისაღებად, თქვენ მათ ერთი პარტიციაში გაგზავნით (ერთი და იგივე გასაღების მეშვეობით). დალაგების გაგება მნიშვნელოვანია სისწორের თვალსაზრისით.
პარტიციის შიგნით დალაგება
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)
