Skip to main content

Create an Apache Kafka® topic

You can configure Aiven for Apache Kafka® to automatically create topics when a message is produced to a non-existent topic, but it is recommended to create topics beforehand, especially in production environments.

This approach offers several advantages:

  • You can define specific topic settings, such as the number of partitions, replication factor, retention period, and more.
  • It helps prevent the creation of incorrect topics due to typos or other mistakes.
note

When tiered storage is activated for your Aiven for Apache Kafka service, all new topics will have tiered storage enabled by default. Learn more about tiered storage.

Steps to create an Apache Kafka® topic

  1. Log in to the Aiven Console and select the Aiven for Apache Kafka® service to create the topic.
  2. Click Topics in the sidebar.
  3. Click Create topic and enter a name for the topic.
  4. If required, set the advanced configuration option to Yes.
  5. In the Topic advanced configuration section, set properties such as the replication factor, number of partitions, and other settings. These settings can be modified later.
  6. Click Create topic.

The new topic is visible immediately, but it may take a few minutes before you can update its settings.