Reputation: 7774
Sorry this may be a basic question trying to understand the difference between an event and topic in Apache Kafka.
My understanding is both are same and in streaming context topic is called as Event. Correct me if I am wrong.
Upvotes: 9
Views: 10499
Reputation: 6363
There are a lot of events are happening in the world.
Topics can be related to a table in the database but not exactly and events can be related to records of the database.
Upvotes: 4
Reputation: 10065
What is called "event" in the streaming context (if we speak about Kafka Streams API) is a "message" in the normal Kafka usage. The topic is the place where you store messages (or events, in streaming context).
Upvotes: 10
Reputation: 1225
Event (the data) is something you would store in a Topic e.g. userA updated his profile - this is an event and you can send this across (in any format e.g. a JSON payload) to a Kafka topic. Both are not same - no matter what the context
Upvotes: 5