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)
