The guide below demonstrates how to quickly get started with Apache Kafka. You'll connect to a broker, create a topic, produce some messages, and consume them. Be sure to also check out the client code examples to learn more.
Head over to Confluent Cloud and sign up for an account if you don’t have one already. As a new user, you’ll get $200 of free usage each month for your first three months. If you're already signed up you can head straight to the log in page.
From the environments page click on Add Cluster and follow the prompts to launch a Basic cluster with a cloud provider and region of your choosing.
NOTE: You can also interact with Confluent Cloud from the command line using the Confluent Cloud CLI
From the left-hand navigation click on Topics and then Create Topic.
Specify the name as
quickstart, set the Number of partitions to
1, and then click on Create with defaults.
From the left-hand navigation click on Topics to see your new topic listed.
Click on the
quickstart topic and then Messages.
Click Produce a new message to this topic, enter some JSON as the payload, and click on Produce.
Underneath the pane where you created the message, you will see the message appear:
You can also view the messages from the Messages tab and enter an offset of 0 to view all messages from the beginning of the topic in a given partition.
Because the topic only has one partition, you will see all the messages.