Kafka Concepts
Introduction
Use this document to look up Kafka terms you encounter when setting up or monitoring Mendix [hange Data Capture (CDC) For details about what the Mendix Runtime sends to Kafka, see the How It Works section of Change Data Capture.
Where Kafka Stores Records
Cluster and Broker
A Kafka cluster consists of one or more servers called brokers. Brokers store records and handle requests to write or read them.
Topic
A topic is a named stream of records in a Kafka cluster. Each topic has one or more partitions. In CDC, each tracked entity has its own topic.
Partition
A partition is an ordered log within a topic. Kafka preserves the order in which records are written within a partition, not across the topic as a whole.
What a Producer Sends
Kafka Producer
A Kafka producer is a client that writes records to Kafka. Each record goes to one partition, but a producer can write to multiple partitions.
Record, Event, and Message
A Kafka record is the item written to a topic. Kafka documentation may also call it an event or a message. In the Mendix CDC guide, an event describes a tracked object change or a snapshot read. The Kafka record carries that event as its value.
Kafka Record Batch
The producer can send records for the same partition together in a record batch. One produce request can carry batches for multiple partitions. The CDC batch-size gauges measure Kafka record batches, not the groups of events the Mendix Runtime processes.
Terms in the CDC Guide
Groups of CDC Events
The Mendix Runtime processes CDC events in groups before submitting the resulting records to the Kafka producer individually. These groups are separate from Kafka record batches, which the producer creates.
AsyncAPI Channel
An AsyncAPI channel describes where applications send or receive messages. In an AsyncAPI document for Kafka, a channel can represent a Kafka topic. See Message Format for where to find the CDC schema.
CDC Active-Producer Election
CDC active-producer election selects one Mendix app instance to publish CDC events. It does not select the Kafka broker that leads a partition. For configuration and failover behavior, see Active-Producer Election.