Middle+
Can there be a topic in Kafka without partitions?
sobes.tech AI
Answer from AI
In Kafka, a topic always consists of one or more partitions. Partitions are the basic units of storage and parallelism in Kafka.
It is not possible to create a topic without partitions, as a partition is a physical representation of data, and it is at the partition level that message writing and reading occur.
By default, when creating a topic, the number of partitions is set (at least one). If not explicitly specified, Kafka will create a topic with one partition.
Therefore, a topic without partitions is impossible; the minimum number of partitions is one.