Copied copy path!

C4DynamicURL copied

C4Dynamic
    title Checkout request flow
    Person(user, "Shopper", "Checks out")
    Container(spa, "Web App", "React", "UI")
    Container(gw, "API Gateway", "Envoy", "Edge")
    Container(orders, "Orders Service", "Go", "Orders")
    Container(inv, "Inventory Service", "Rust", "Stock")
    Container(pay, "Payments Service", "Java", "Payments")
    ContainerQueue(bus, "Event Bus", "Kafka", "Events")
    Container(notif, "Notification Worker", "Python", "Mail")
    System_Ext(psp, "Payment Provider", "Cards")
    System_Ext(mail, "Email Service", "Mail")
    Rel(user, spa, "1. Clicks Pay")
    Rel(spa, gw, "2. POST /orders", "HTTPS")
    Rel(gw, orders, "3. Create order", "gRPC")
    Rel(orders, inv, "4. Reserve items", "gRPC")
    Rel(orders, pay, "5. Authorize", "gRPC")
    Rel(pay, psp, "6. Charge card", "HTTPS")
    Rel(orders, bus, "7. Publish OrderCreated")
    Rel(bus, notif, "8. Deliver event")
    Rel(notif, mail, "9. Send confirmation", "SMTP")
    Rel(gw, spa, "10. Return 201")
```mermaid
---
width: 85vw
---
C4Dynamic
    title Checkout request flow
    Person(user, "Shopper", "Checks out")
    Container(spa, "Web App", "React", "UI")
    Container(gw, "API Gateway", "Envoy", "Edge")
    Container(orders, "Orders Service", "Go", "Orders")
    Container(inv, "Inventory Service", "Rust", "Stock")
    Container(pay, "Payments Service", "Java", "Payments")
    ContainerQueue(bus, "Event Bus", "Kafka", "Events")
    Container(notif, "Notification Worker", "Python", "Mail")
    System_Ext(psp, "Payment Provider", "Cards")
    System_Ext(mail, "Email Service", "Mail")
    Rel(user, spa, "1. Clicks Pay")
    Rel(spa, gw, "2. POST /orders", "HTTPS")
    Rel(gw, orders, "3. Create order", "gRPC")
    Rel(orders, inv, "4. Reserve items", "gRPC")
    Rel(orders, pay, "5. Authorize", "gRPC")
    Rel(pay, psp, "6. Charge card", "HTTPS")
    Rel(orders, bus, "7. Publish OrderCreated")
    Rel(bus, notif, "8. Deliver event")
    Rel(notif, mail, "9. Send confirmation", "SMTP")
    Rel(gw, spa, "10. Return 201")
```