Generated by an agent from the monorepo, Terraform and OpenTelemetry traces · regenerated nightly so it never goes stale · sample data
flowchart LR
web[Web app\nVue]:::fe --> gw[API gateway\nGo]
mobile[Mobile\nSwift / Kotlin]:::fe --> gw
gw --> auth[Auth\nGo]
gw --> pay[Payments\nGo]
gw --> search[Search\nPython]
gw --> notif[Notifications\nNode]
pay --> stripe[(Stripe)]:::ext
pay --> pg[(Postgres\nprimary)]:::db
auth --> pg
search --> os[(OpenSearch)]:::db
pay -- events --> q{{NATS}}
q --> notif
q --> search
notif --> mail[(Mailgun)]:::ext
classDef fe fill:#eef2ff,stroke:#6366f1
classDef db fill:#ecfeff,stroke:#06b6d4
classDef ext fill:#fff7ed,stroke:#f97316
sequenceDiagram autonumber participant U as Customer participant G as API gateway participant P as Payments participant S as Stripe participant N as Notifications U->>G: POST /checkout G->>P: CreateIntent(cart) P->>S: payment_intents.create S-->>P: client_secret P-->>U: confirm in browser S-)P: webhook payment_succeeded P-)N: order.paid event N-->>U: receipt email
erDiagram
ACCOUNT ||--o{ USER : has
ACCOUNT ||--o{ ORDER : places
ORDER ||--|{ LINE_ITEM : contains
ORDER ||--o| PAYMENT : "paid by"
PRODUCT ||--o{ LINE_ITEM : "sold as"
USER { uuid id string email string role }
ORDER { uuid id string status int total_pence }
PAYMENT { string stripe_id string state }
search now consumes order.paid events from NATS to index purchases.notifications moved from SendGrid to Mailgun (PR #887).reports-cron service, now replaced by scheduled agent pages.payments and auth still share one Postgres primary; split proposed in RFC-031.Routing, rate limits, JWT validation.
Stripe intents, refunds, webhooks.
Catalogue + order search on OpenSearch.
Email, push and in-app messages.