Skip to main content

Create an Apache Kafka® topic

A topic in Aiven for Apache Kafka® is a named stream of messages used by producers to send data and by consumers to read it.

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.

Manual creation lets you:

  • Configure the number of partitions, replication factor, and retention period.
  • Avoid accidental topic creation caused by typos or misconfigured clients.
note

If tiered storage is enabled for your Aiven for Apache Kafka® service, all new topics 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.
  3. Click Create topic.
  4. Enter a name for the topic.
  5. To configure additional settings, turn on Enable advanced configuration.
  6. In the Topic advanced configuration section, configure properties such as the replication factor, number of partitions, and retention settings. You can change these later if needed.
  7. Click Create topic.

You can see the new topic immediately. It may take a few minutes before you can update its settings.

Related pages