August 2017
Beginner to intermediate
284 pages
6h 51m
English
A producer is an entity that uses the Kafka client API to publish messages into the Kafka cluster. In a Kafka broker, messages are published by the producer entity to named entities called topics. A topic is a persistent queue (data stored into topics is persisted to disk).
For parallelism, a Kafka topic can have multiple partitions. Each partition data is represented in a different file. Also, two partitions of a single topic can be allocated on a different broker, thus increasing throughput as all partitions are independent of each other. Each message in a partition has a unique sequence number associated with it called an offset:
Read now
Unlock full access