Kafka Consumer Placements Cheat Sheet

Partitions, rebalance, and lag

Last Updated: November 21, 2025

Focus Areas

Focus
Match consumer count to partition count
Use cooperative rebalancing mode

Commands & Queries

kafka-consumer-groups --describe --group my-group
Inspect offsets
kafka-topics --alter --partitions 12 --topic orders
Resize partitions
kafka-run-class kafka.admin.ConsumerGroupCommand --bootstrap-server ...
Consult group state

Summary

Balanced consumer placements avoid lag and outages.

💡 Pro Tip: Favor static membership when possible to avoid excessive rebalances.
← Back to Databases & APIs | Browse all categories | View all cheat sheets