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
-
Go to the Topics overview in Self Service
-
On the left-side menu, click topics
-
In the top-right corner of the screen, click the New topic button
-
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
-
-
-
Click Add topic, at the bottom-right of the screen
Deploying the topic
-
Open the Topic Details view if you’ve navigated away from the previously created topic.
-
Go to the Topic Overview page
-
Click on the topic you want to deploy
-
-
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)
-
-
Click the Save button to deploy the topic. It is now created and active on the Kafka cluster