September 2018
Intermediate to advanced
398 pages
9h 43m
English
The component to send messages to a topic is called a producer in Kafka. The responsibility of a producer is to automatically select a partition through a broker to write messages. In case of failure, the producer should automatically recover.
The partition selection is based on a key. The producer will take care of sending all messages with the same key to the same partition. If there is no key provided with the message, the producer load balances the messages using a round-robin algorithm.
You can configure the producer with the level of acknowledgment you want to receive. There are three levels:
Read now
Unlock full access