conduktor.io ↗

group.instance.id — Kafka Consumer Configuration

A unique identifier of the consumer instance provided by the end user. Only non-empty strings are permitted.

Description

A unique identifier of the consumer instance provided by the end user. Only non-empty strings are permitted. If set, the consumer is treated as a static member, which means that only one instance with this ID is allowed in the consumer group at any time. This can be used in combination with a larger session timeout to avoid group rebalances caused by transient unavailability (e.g. process restarts). If not set, the consumer will join the group as a dynamic member, which is the traditional behavior.

Default Values by Kafka Version

Kafka VersionDefault Value
2.3null
2.4null
2.5null
2.6null
2.7null
2.8null
3.0null
3.1null
3.2null
3.3null
3.4null
3.5null
3.6null
3.7null
3.8null
3.9null
4.0null
4.1null
4.2null

Tuning Recommendation

ProfileRecommendedWhy
consumer / throughput<unique-per-instance-id>Setting a stable group.instance.id enables static group membership: when a consumer restarts, the broker recognizes it by ID instead of treating it as a new member, skipping the rebalance entirely during the session.timeout.ms window. Critical for high-throughput pipelines where rebalances cause seconds of total-group processing interruption.
consumer / durability<unique-per-instance-id>Static membership eliminates the rebalance triggered by consumer restarts. When a durable consumer restarts (e.g., after processing an error), the broker recognizes its stable ID and does not trigger a full group rebalance within session.timeout.ms. This prevents the duplicate-processing burst that rebalances cause in at-least-once consumers.

Related Configs

partition.assignment.strategy · session.timeout.ms · max.poll.interval.ms

Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.