Skip to main content
Welcome back. This recap walks through the full event-driven flow we implemented, highlighting each component and the sequence of actions from order creation to dashboard update. What we built
  • A shopping front-end that emits an “Order Placed” event. Each event carries the order payload (order ID, items and quantities, totals, customer info, timestamps).
  • A producer that serializes and publishes those events to an Apache Kafka topic.
  • A Kafka deployment (provisioned on an EC2 instance in this project) that hosts the topic(s) and persists the event stream.
  • A warehouse dashboard that acts as a Kafka consumer: it subscribes to the topic, deserializes messages, manages offsets and consumer groups, and updates the UI based on consumed events.
How the data flows
  1. User places an order in the front-end UI.
  2. The front-end producer packages and serializes the order payload and publishes it to a Kafka topic.
  3. Kafka stores the event in the topic partitions (running on an EC2-hosted broker for this project).
  4. The warehouse dashboard consumer (or multiple consumers in a consumer group) reads, deserializes, and processes events, then updates the UI and any downstream systems.
The image illustrates an event-driven system flow involving a shopping application, where an "Order Placed" event is sent to a Kafka topic and then directed to a warehouse dashboard.
Key phases at a glance
Testing tip: Validate each stage independently. Produce test events directly to the Kafka topic, consume them with a simple CLI consumer, then verify the dashboard logic. This helps isolate producer, broker, and consumer issues.
Links and references Putting it together, the main steps were:
  • Set up Kafka (cluster/topic provisioning)
  • Build the front-end UI and producers to emit events
  • Build the back-end/API and consumers to process those events and update the dashboard
I hope this recap gives you a clear, end-to-end view of building an event-driven system using Apache Kafka. See you in the next lesson.

Watch Video