What is a Kafka topic?
A topic is a named stream of records divided into partitions.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 2497–2508 of 3610 questions
A topic is a named stream of records divided into partitions.
A partition is an ordered append-only log within a topic.
An offset identifies a record's position within a partition.
A Kafka broker is a server that stores partition replicas and serves producer and consumer requests.
A Kafka producer serializes records and sends them to a topic partition, often choosing the partition from a key or partitioner.
A Kafka consumer fetches records from topic partitions, processes them, and advances its position using offsets.
A consumer group is a set of consumers that share topic partitions, with each partition assigned to one consumer in the group at a time.
A record key commonly determines partition placement and groups related records onto the same partition.
Consumer lag measures how far a consumer group is behind the end of the log, often in records or offsets.
RabbitMQ is a message broker that commonly uses AMQP and routes messages through exchanges into queues.
An exchange receives published messages and routes them to queues according to its type, bindings, and routing keys.
A queue stores messages until consumers receive and acknowledge them or they expire or are otherwise removed according to configuration.