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)
