Kafka

How to Overcome Data Order Issues in Apache Kafka

Kafka publishes records to a topic, a category or feed name that multiple Kafka consumers can subscribe to and retrieve data. The Kafka cluster maintains a partitioned log for each topic, with all messages from the same producer sent to the same partition and added in the order they arrive. In this way, partitions are…

Achieving “Exactly-Once Message Delivery”

Kafka includes three different message delivery methods, each with its own guaranteed behaviors: At-Once Message Delivery: This method will either deliver a message batch once, or never. This eliminates the risk of resending the same messages, but allows them to be lost as well. At-Least-Once Message Delivery: This method will not stop until messages are…

Steps of a Kafka Transaction Workflow for Exactly-Once Message Delivery

The following diagram captures the Kafka transaction workflow steps needed to achieve Exactly-Once Message Delivery. Step 1 – initTransactions() registers a transaction ID (a unique persistent producer ID) with the transaction coordinator. Step 2 – The coordinator bumps up the epoch of the producer ID (ensuring there is just one legitimate active instance of the…

Design a site like this with WordPress.com
Get started