Step 2: Creating Topics

In this step, you will create and configure a topic. Producer and consumer applications will later connect to it.

Create topic registration

  1. Go to the Topics overview in Self Service

    Topics Overview
  2. On the left-side menu, click topics

    AddTopic
  3. In the top-right corner of the screen, click the New topic button

    AddTopic
  4. Fill out the fields for the new topic

    • Choose a name for the topic

    • Description: Enter a description which helps (future) colleagues understand what kind of data is available on the stream. I.e. Logs created by various applications at 'Demo Tenant'.

    • Owner: Select default as the owner. Resource-access is group-based, and you currently belong to this group

    • Key Type & Value Type: Select the type of key and value type from the drop-down

    • Retention policy controls when records are removed from the topic

      • Keep latest value for each key forever will result in a so called compaction topic

      • Remove messages when retention period has expired will result in a so called deletion topic

        AddTopicWithValues
  5. Click Add topic, at the bottom-right of the screen

Deploying the topic

  1. Open the Topic Details view if you’ve navigated away from the previously created topic.

    1. Go to the Topic Overview page

    2. Click on the topic you want to deploy

      ConfigureTopic
  2. Near the center of the Topic Details view, there is a gear icon and a blue circle: indicating that configuration is not setup for this environment. Click the gear icon.

    • Enter a retention time (e.g. 1 day)

    • Enter a number of partitions (e.g. 2)

      ConfigureTopic
  3. Click the Save button to deploy the topic. It is now created and active on the Kafka cluster

    CreatedTopic