InterviewSolution
Saved Bookmarks
| 1. |
What is the purpose of partitions in Kafka? |
|
Answer» PARTITIONS allow a single topic to be partitioned across numerous servers from the perspective of the Kafka broker. This allows you to store more data in a single topic than a single server can. If you have three brokers and need to store 10TB of data in a topic, one option is to construct a topic with only one partition and store all 10TB on one broker. ANOTHER alternative is to build a three-partitioned topic and distribute 10 TB of data AMONG all brokers. A partition is a unit of PARALLELISM from the consumer's perspective. |
|