Mini Project: Keyed Order Events on Kafka Partitions
Learn Mini Project: Keyed Order Events on Kafka Partitions (Kafka & Event-Driven Architecture, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Mini Real-Time Project: Keyed Order Events on Kafka Partitions Problem An order system publishes events (placed, paid, shipped) to a Kafka topic. All events of one order must be read in order, while different orders can be processed in parallel. Requirements Publish events with the order id as the message key. Show that the same key always lands in the same partition. Consume the records and rebuild each order's timeline. Show per-partition offsets and that order is preserved per key. Concepts Used Kafka topic, partition, offset message key and partitioning Producer and Consumer API ordering...