Managing Kafka topics
The distributed Kafka system uses a model of topics and partitions to organize data.
A topic is a grouping principle for a stream of messages by category. Multiple producers and consumers granted access can work with a topic independently.
Partitions
Each topic can have multiple partitions—physical units for data storage. Partitions are used for parallel data processing and system scaling. Each message is written to a specific topic partition. All messages within a single partition maintain their order.
When creating a topic, you can define the number of partitions. After a topic is created, you can only increase the number of partitions.
Create a topic
- In the Dashboard, on the top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Topics tab.
- Click Create topic.
- Enter a topic name.
- Enter the number of partitions. The maximum number of partitions is 4 000. You cannot decrease the number of partitions after a topic is created.
- Click Create.
Delete a topic
- In the Dashboard, on the top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Topics tab.
- In the topic menu, select Delete.
- Enter the topic name to confirm the deletion.
- Click Delete.