A Comprehensive Overview of Apache Kafka Main Concepts

Consumer Group Rebalancing, Partitioning, Consumers, Message Retention, Ordering, Processing, and Equally Distributed Messages

Colton
7 min readFeb 7, 2023

Apache Kafka is a powerful and scalable event-streaming platform that is used by many organizations to handle high-volume data streams. It allows you to publish, store, and process streams of records in a distributed environment. This article will provide a comprehensive overview of the key concepts and features of Apache Kafka, including producers, consumers, topics, partitions, and consumer groups.

Retention of Messages

In Apache Kafka, messages are stored in topics and are retained for a configurable amount of time. This means that once a message is produced and written to a topic, it remains there until the retention period has passed.

Kafka provides the option to set the retention period for a topic, allowing administrators to configure the amount of time that messages are kept in the topic. For example, if a retention period of one day is set, then messages written to the topic will be stored for one day before being automatically deleted.

It’s important to note that a message is not deleted from the topic after it has been

--

--

Colton
Colton

Written by Colton

A software engineer who is always at a high level of passion with new techs and a strong willing to share with what I have learned.

No responses yet