Articles
- Spring Consumers: @KafkaListener, Group, Offset Commit, RebalanceNov 2026The Spring consumer reads OrderCreated events with KafkaListener and stores them in memory so it can be tested via REST. The reader proves that two instances in one group split the partitions, that offsets only advance after acknowledge, and that pausing raises the lag, which is delivered again on resume.
- Spring MVC Producers: KafkaTemplate, Keys, and JSONNov 2026KafkaTemplate sends OrderCreated events as JSON to a Kafka topic via a Spring MVC endpoint, using customerId as the key. The reader proves that the same key always lands in the same partition, then sees a trusted packages error on the consumer side and fixes it.
- Delivery Guarantees: acks, Idempotence, At-least-once vs Exactly-onceOct 2026Kafka delivery guarantees are demonstrated through the built-in CLI on a local broker, with no project needed. Readers see how acks and idempotence affect the producer, why a consumer that reads without committing reads the same messages again, and how to reprocess data via offset reset.
- Kafka Architecture: Topic, Partition, Offset, Consumer GroupOct 2026Topic, partition, offset, and consumer group are demonstrated directly through Kafka's built-in CLI on a local broker, without a project. Readers see for themselves how keys determine partitions, how offsets are stored per group, and how partitions are distributed among group members.