Apache Kafka® Quick Start

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.

Confluent Cloud

1. Sign up for Confluent Cloud

Head over to Confluent Cloud and sign up for an account if you don’t have one already. As a new user, you’ll receive $400 to spend within your first 60 days. If you've already signed up you can head straight to the login page.

2. Create a Kafka cluster

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.

Quick Start for Confluent Cloud - Create Cluster Confluent Cloud - Create cluster

Note

You can also interact with Confluent Cloud from the command line using the Confluent CLI.

3. Create a topic

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. Quick Start for Confluent Cloud - Create Topic

4. Write messages to the topic

From the left-hand navigation click on Topics to see your new topic listed.

Quick Start for Confluent Cloud - Topic List

Click on the quickstart topic and then Messages.

Quick Start for Confluent Cloud - Topic Detail

Click Produce a new message to this topic, enter some JSON as the payload, and click on Produce.

Quick Start for Confluent Cloud - Topic Write

5. Read messages from the topic

Underneath the pane where you created the message, you will see the message appear:

Quick Start for Confluent Cloud - View Message

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.

Quick Start for Confluent Cloud - View Topic Message

What's Next

  • Build Apps
  • Build Pipelines
  • Operate
Build Apps
  • Select a value
  • Build Apps
  • Build Pipelines
  • Operate

Tutorials with Full Code Examples

Learn the basics

Step through the basics of the CLI, Kafka topics, and building applications.

Explore top use cases

Run pre-built ksqlDB recipes that tackle the highest impact use cases for stream processing

Master advanced concepts

Learn how to route events, manipulate streams, aggregate data, and more.

Get Started with Kafka Clients

Write your first application using these full code examples in Java, Python, Go, .NET, Node.js, C/C++, REST, Spring Boot, and further languages and CLIs.

Top 3 Courses for Application Developers

Confluent Cloud is a fully managed Apache Kafka service available on all three major clouds. Try it for free today.

Try it for free

Be the first to get updates and new content

We will only share developer content and updates, including notifications when new content is added. We will never send you sales emails. 🙂 By subscribing, you understand we will process your personal information in accordance with our Privacy Statement.