Skip to content

Command Palette

Search for a command to run...

6 min read
Kafka Explained: Partitions, Offsets & Consumer Groups

Kafka Explained: Partitions, Offsets & Consumer Groups

KafkaMessaging SystemsSystem Design

The most useful reframe about Kafka is that it isn't a message queue. A queue deletes a message once a consumer acknowledges it. Kafka is an append-only log: consuming changes nothing, and only the retention policy (time or size based) removes data. That's why several independent consumer groups can read the same topic at completely different positions without competing.

A topic is split into partitions, each an ordered sequence where every message gets an increasing offset. Ordering is guaranteed within a partition, never across a topic. Messages sharing a key hash to the same partition, which is how per-key ordering survives. Inside one consumer group each partition goes to exactly one consumer, so consumers beyond the partition count sit idle, and every group commits its own offsets.

Partition count is both your parallelism ceiling and your ordering boundary, and it can't be reduced later. Choose generously up front.

Read full article on dev.to

Exactly Once vs At Least Once: What Kafka's Guarantee Actually Covers

BackendDistributed SystemsSystem DesignKafka
Published on
Reading time
6 min read

Kafka vs RabbitMQ: Which Message Broker Should You Actually Pick?

BackendSystem DesignArchitecture
Published on
Reading time
6 min read

Pub/Sub Architecture: Push vs Pull Messaging

Pub/SubMessaging SystemsSystem Design
Published on
Reading time
4 min read