Event-Driven Order Flow
An order service publishing events to a bus, consumed by inventory and notification services that send email through a provider.
Opens in the editor. No signup. Export SVG, PNG, or an embed link.
title: Event-Driven Order Flow
theme: blueprint
node orders "Order service" [service]
node bus "Event bus" [queue]
node inventory "Inventory" [service]
node notify "Notifications" [service]
node mail "Email provider" [external]
bus right-of orders
inventory right-of bus
notify below inventory
mail right-of notify
orders -> bus : "OrderPlaced" flow
bus -> inventory
bus -> notify
notify -> mail : "send"About this template
The order service publishes an OrderPlaced event to an event bus. Inventory and Notifications subscribe to the bus, and Notifications sends email through an external email provider.
This diagram explains loose coupling: the order service does not call inventory or notifications directly, so you can add a new subscriber without changing it. The animated arrow highlights the event as it is published.
To add a subscriber such as analytics, add one node and one "bus -> analytics" arrow. Use the [external] kind for third-party services so readers can tell which parts you run yourself.