Kafka Core Concepts: Brokers, Topics
Understand the fundamental building blocks of Kafka: brokers, topics, and their roles in data storage and distribution.
Kafka Core Concepts: Brokers, Topics is a free Apache Kafka & Stream Processing Fundamentals lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Apache Kafka & Stream Processing Fundamentals learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Intro to Kafka's Core
Let's meet Kafka's two fundamental building blocks: brokers and topics. These are how Kafka stores and organizes your data streams.
Meet the Kafka Broker
A Kafka broker is a single server running Kafka. It receives messages from producers, stores them on disk, and serves them to consumers — the engine of it all.
Brokers in a Cluster
Real setups run multiple brokers together as a Kafka cluster. That gives you high availability (one broker fails, others cover) and scalability for more data.
What are Kafka Topics?
A topic is a named category or feed where records are published. Different data — "user activity," "payments" — goes into different topics to stay organized.
Topics Organize Data
Think of a topic like a named folder or DB table: logins go to user_logins, orders to product_orders. Apps quickly find the stream they need.
Messages & Topics
Every message (or record) is published to a specific topic, and apps subscribe to read it. It's publish-subscribe — a topic is the pipeline for one data stream.
Brokers Host Topics
Topics live on the brokers. A topic's data is spread across one or more brokers in the cluster, and that distribution is key to Kafka's scale and fault tolerance.
Why Brokers & Topics?
Together, brokers and topics give you scalability, durable on-disk storage, clean organization, and decoupling — producers and consumers only share the topic.
Creating a Topic (Concept)
To make a stream of sensor data, you'd create a topic like sensor_readings, and Kafka readies its brokers to store and manage those messages.
Quick Concept Check
Let's test your understanding of Kafka's core components!
Recap: Brokers & Topics
You've got Kafka's two foundations: brokers (servers that store and serve data) and topics (logical streams hosted across them). Solid base.
Frequently asked questions
Is the “Kafka Core Concepts: Brokers, Topics” lesson free?
Yes — the full text of “Kafka Core Concepts: Brokers, Topics” is free to read here on the web, and the Apache Kafka & Stream Processing Fundamentals course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Apache Kafka & Stream Processing Fundamentals course, upgrade to CoddyKit PRO.
What will I learn in “Kafka Core Concepts: Brokers, Topics”?
Understand the fundamental building blocks of Kafka: brokers, topics, and their roles in data storage and distribution. You practise Apache Kafka & Stream Processing Fundamentals with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Apache Kafka & Stream Processing Fundamentals?
No prior experience is required. Apache Kafka & Stream Processing Fundamentals on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Kafka Core Concepts: Brokers, Topics” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Apache Kafka & Stream Processing Fundamentals lesson?
Yes. Every Apache Kafka & Stream Processing Fundamentals lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- What is Apache Kafka?
- Kafka Core Concepts: Brokers, Topics
- Setting Up Kafka Locally
- The Commit Log: How Kafka Stores Data