Introduction to Architecture and Services

Lab Objectives

The objective of this lab is to guide you through building a resilient, asynchronous, and decoupled Event-Driven Architecture (EDA) on AWS. Using a real-world specialty coffeehouse ordering workflow (“The Cozy Brew”), you will learn how events originate from client browsers, traverse serverless APIs, broadcast across a Pub/Sub topic, and filter into dedicated queues for asynchronous fulfillment.

Business Context: “The Cozy Brew” Coffeehouse

In a traditional synchronous ordering system, when a customer places an order, the web server must execute multiple sequential tasks:

  1. Validate order details and payment.
  2. Push order to the barista’s preparation screen.
  3. Send an email confirmation.
  4. Notify the express kitchen if the order is a large corporate order.

If the email server is slow or the barista display system encounters downtime, the customer’s checkout hangs or fails completely.

Event-Driven Architecture solves this by introducing decoupling:
The checkout service only needs to record the order and publish an event (OrderPlaced). Downstream systems (barista queue, customer notifications, VIP express fulfillment) listen and process messages independently at their own pace without impacting the customer’s experience.