Apache Kafka Engineering Notes

Apache Kafka Engineering Notes: learn Kafka through two Spring Boot services that talk to each other. It starts with two CLI-based theory articles, then covers the producer, the consumer, error handling with a Dead Letter Topic, and transactions. Every article ships tested code, real output from a local broker, and REST endpoints you can try with curl. Written for Java/Spring developers new to Kafka. Uses Java 21, Spring Boot 4.1, and Apache Kafka 4.3 (KRaft).

  1. 1. Kafka Architecture: Topic, Partition, Offset, Consumer Group
  2. 2. Delivery Guarantees: acks, Idempotence, At-least-once vs Exactly-once
  3. 3. Spring MVC Producers: KafkaTemplate, Keys, and JSON
  4. 4. Spring Consumers: @KafkaListener, Group, Offset Commit, Rebalance