Skip to content
D2 templates

Event-driven order flow

Order created → Payment → Inventory → Shipping, all via events.

Template previewD2
Rendering…

Make it your own.

web -> api
api -> bus: order.created

bus -> payment
payment -> bus: payment.captured

bus -> inventory
inventory -> bus: stock.reserved

bus -> shipping
shipping -> bus: label.created

shipping -> customer: email

bus.shape: queue