# Kafka Topic

> A named stream of one kind of event, such as orders.

**Field:** Data Engineering  
**Category:** Ingestion & Streaming  
**Also known as:** Topic, Event Topic

## Think of it like

It is like a named shelf in a shop. All the shoes go on the shoe shelf.

## Definition

A Kafka topic is a named stream of events of one kind, such as orders or clicks. Producers write events to a topic by name. Consumers read from a topic by name. Each topic is split into one or more partitions. It has its own settings, such as how long its events are kept.

## Example

A shop has three topics: orders, payments and page-views. The email app reads just orders.

## Example code

```console
$ kafka-topics.sh --create --topic orders \
    --partitions 3 --bootstrap-server localhost:9092
Created topic orders.
```

Make an orders topic with three partitions.

## Why it matters

Topics are how events are sorted. A good topic name tells every team where to look.

## Common mistake

Putting every kind of event into one topic. Readers then have to sift through events they do not want.

## Three principles

- **Named stream.** One kind of event per topic.
- **Split into partitions.** For speed and scale.
- **Own settings.** Like how long events are kept.

## Related terms

- [Apache Kafka](https://learn.benibix.com/term/data/apache-kafka)
- [Kafka Partition](https://learn.benibix.com/term/data/kafka-partition)
- [Kafka Consumer Group](https://learn.benibix.com/term/data/kafka-consumer-group)
- [Event Streaming](https://learn.benibix.com/term/data/event-streaming)
- [Kafka Retention](https://learn.benibix.com/term/data/kafka-retention)
- [Kafka Producer](https://learn.benibix.com/term/data/kafka-producer)

---

Source: https://learn.benibix.com/term/data/kafka-topic
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
