liveBook · Manning

Event

As explained in Kafka Streams in Action, Second Edition

An event is a record of something that happened, especially business-critical data whose preservation has lasting significance.

An event records something that happens, such as a purchase, link click, or sensor transmission. People or machines generate events, and their continuing sequence forms an event stream. section 1.2

Represent an event through three core components:

  • Key — identifies the event and supports routing or grouping, such as a customer ID. section 1.2
  • Value — carries the event payload, such as a sensor trigger or purchased item. section 1.2
  • Timestamp — records when the event occurred. section 1.2

Treat events as business-critical records rather than disposable machine-to-machine messages. Kafka brokers store event key-value data durably, supporting later use and preservation. section 1.4.1

A shipment event stream

A flux capacitor purchase produces events as the package leaves the warehouse, changes custody, reaches an airport and distribution center, loads for delivery, and arrives at the customer. Each scan records an operational milestone; together, the events trace one purchase through fulfillment. section 1.3

Table 1.1 Definitions
Event
Something that occurs and attributes about it recorded
Event Stream
A series of events captured in real-time from sources such as mobile or IoT devices
Event Streaming Platform
Software to handle event streams—capable of producing, consuming, processing, and storage of event streams
Apache Kafka
The premier event streaming platform—provides all the components of an event streaming platform in one battle-tested solution
Kafka Streams
The native event stream processing library for Kafka

Use the definitions table to distinguish events, event streams, event-streaming platforms, Apache Kafka, and Kafka Streams. section 1.2

How Kafka Streams in Action, Second Edition covers it

How deep it goes
Defines events through keys, values, and timestamps, then distinguishes durable business records from ephemeral messages.
Examples
Uses purchases, link clicks, sensor transmissions, and a flux capacitor shipment with custody scans as examples.
What you can do after
Understand event streams by identifying each event’s key, payload, timestamp, and business significance.
How it connects
Connects events to event streams, event-streaming platforms, Apache Kafka, Kafka brokers, and messages.

Also explained in

Compare how 18 books explain event →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kafka Streams in Action, Second Edition. The section links point to the parts of the book it draws on.