📥Kafka Topic
Also known as Topic, Event Topic
A named stream of one kind of event, such as orders.
Think of it like
It is like a named shelf in a shop. All the shoes go on the shoe shelf.
Example
A shop has three topics: orders, payments and page-views. The email app reads just orders.
Why it matters
Topics are how events are sorted. A good topic name tells every team where to look.
Definition
Example code
console
$ kafka-topics.sh --create --topic orders \
--partitions 3 --bootstrap-server localhost:9092
Created topic orders.Common mistake
Key takeaways
- 1Named stream. One kind of event per topic.
- 2Split into partitions. For speed and scale.
- 3Own settings. Like how long events are kept.