Apache Kafka · Schema

Kafka Record

Schema for an Apache Kafka record (message) including key, value, headers, and metadata.

Distributed SystemsEvent StreamingMessagingOpen SourcePub-Sub

Properties

Name Type Description
topic string The topic the record belongs to
partition integer The partition within the topic
offset integer The offset of the record within the partition
timestamp integer The timestamp of the record in milliseconds since epoch
timestampType string The type of timestamp
key object The record key, used for partitioning. Can be any type.
value object The record value (message payload). Can be any type.
headers object Key-value pairs of record headers
View JSON Schema on GitHub