Orbit platform architecture

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 }

Changes since last week

  • New: search now consumes order.paid events from NATS to index purchases.
  • Changed: notifications moved from SendGrid to Mailgun (PR #887).
  • Removed: legacy reports-cron service, now replaced by scheduled agent pages.
  • Risk: payments and auth still share one Postgres primary; split proposed in RFC-031.

API gateway Go

Routing, rate limits, JWT validation.

p95 42msrps 1.9kowner @platform

Payments Go

Stripe intents, refunds, webhooks.

p95 180msrps 120owner @money

Search Python

Catalogue + order search on OpenSearch.

p95 95msrps 640owner @discovery

Notifications Node

Email, push and in-app messages.

p95 60msqueue 12owner @growth