Skip to main content

Managing Kafka topics

Last update:

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

  1. In the Dashboard, on the top menu, click Products and select Managed Databases.
  2. Open the Active tab.
  3. Open the cluster page → Topics tab.
  4. Click Create topic.
  5. Enter a topic name.
  6. 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.
  7. Click Create.

Delete a topic

  1. In the Dashboard, on the top menu, click Products and select Managed Databases.
  2. Open the Active tab.
  3. Open the cluster page → Topics tab.
  4. In the topic menu, select Delete.
  5. Enter the topic name to confirm the deletion.
  6. Click Delete.