InterviewSolution
| 1. |
Explain the anatomy of the Kafka topic? |
|
Answer» The topic is a very important feature of Kafka architecture. The messages are grouped into a topic. The producer system SENDS messages to a specific topic while consumer system read messages from a specific topic only. Further messages in the topic are distributed into several PARTITIONS. The partition ensures same topic data is replicated across multiple brokers. The individual partition can RESIDE on an individual machine which allows message reading from same topic parallel. The multiple subscriber systems can PROCESS data from multiple partitions which result in high messaging throughput. The unique identifier is tagged with each message WITHIN a partition which is called offset. The offset is sequentially incremented to ensure ordering of messages. The subscriber system can read data from the specified offset but at the same time, they are allowed to read data from any other offset point as well. |
|