Consumer Groups and Rebalancing in Kafka with Spring Boot
Understand how Kafka divides partitions among consumer groups, when rebalancing occurs, and how to reduce rebalancing impact in Spring Boot applications.
Understand how Kafka divides partitions among consumer groups, when rebalancing occurs, and how to reduce rebalancing impact in Spring Boot applications.
Use Debezium to read PostgreSQL's WAL, push every data change to Kafka and consume them with Spring Boot, without modifying the data writing code.
Use Kafka as an event log for Order: record immutable events, rebuild state through replay, build read models using projections. Plus the limitations to know before applying.
What is consumer lag, how to measure it with CLI, AdminClient and Micrometer, which broker/producer/consumer metrics to track and how to set up reasonable alerts.
Configure acks, enable.idempotence, batch.size and linger.ms for Kafka producer to prevent message loss, avoid duplicates while achieving high throughput.
Writing to database and sending to Kafka simultaneously easily loses events. This article guides you through implementing the Outbox pattern with Spring Boot 3 and Kafka to keep both systems consistent.
Set up Saga pattern with orchestration using Spring Boot and Kafka. Book flights, hotels, process payments, and automatically compensate when a step fails.
Use Confluent Schema Registry with Avro and Protobuf in Spring Boot 3 to control Kafka message formats and evolve schemas safely.
How rebalancing works, why it stops consumers, and ways to minimize it through poll configuration, cooperative rebalancing, and static membership.
How Kafka selects partitions from keys, how to choose keys to maintain correct message order without creating hot partitions, and common mistakes with Spring Boot.
Configure blocking and non-blocking retry for Kafka consumer in Spring Boot 3, push error messages to dead letter topic, and write tests to verify behavior.
Learn how acks, retries, and idempotence work together to ensure messages are not lost or duplicated when a producer sends data to Kafka.
Explaining three fundamental Kafka concepts — topic, partition, offset — with producer/consumer examples using Spring Boot.