メッセージ順序保証とは?
メッセージ順序保証は、メッセージングシステムが配信時にメッセージの送信順序を保つかどうか、またどのように保つかを表します。多くのシステムは、グローバルではなく、単一のパーティション内、あるいはキーを共有するメッセージに対してのみ順序を保証します。トピック全体で厳密な全順序を達成するには、通常 throughput が犠牲になります。
なぜ重要か
口座残高の変更を適用するような、順序に依存する consumer は、順序が保たれないと壊れます。システムがパーティションごとに順序付けすることを知っておくと、partition key の選び方の指針になります。
関連ガイド
What Is a Partition Key?A partition key is the value used to decide which partition a message or record goes to, controlling distribu…
What Is a Kafka Offset?A Kafka offset is the sequential position of a message within a partition, used by consumers to track which r…
What Is a Consumer Group?A consumer group is a set of consumers that share the work of reading a topic, with each partition assigned t…