Skip to content

Ordermatic Infrastructure & Observability

Interactive architecture map for how Ordermatic is deployed, controlled, and observed.

File Purpose
ordermatic-infrastructure-observability.architecture.html Interactive, pan/zoom viewer with guided views
ordermatic-infrastructure-observability.architecture.json Archify source of truth (validated, versioned)
ordermatic-infrastructure-observability.architecture.png Static preview for docs / READMEs

Static preview

  • Developers push code to GitHub Actions.
  • GitHub Actions trigger Cloud Build for image builds and deploys.
  • Cloud Build pushes Docker images to Artifact Registry and deploys to Cloud Run & GCE.
  • Cloud Run & GCE run the webapp and workers.
  • Neon is the app-layer Postgres database.
  • Upstash is the Redis cache and rate-limiting service.
  • Cloudflare hosts Workers and R2 for edge compute and object storage.
  • Infisical + Flagsmith supply secrets and feature flags.
  • Observability aggregates OpenTelemetry / Pino telemetry into Better Stack, Langfuse, and PostHog.
  1. Deployment flow β€” from push to built images and deployed compute.
  2. App runtime β€” compute reads Neon Postgres, Upstash Redis, and Cloudflare R2 / Workers.
  3. Data services β€” Neon for app-layer Postgres, Upstash for cache and rate limiting.
  4. Control plane β€” Infisical secrets, Flagsmith feature flags, and CI gates.
  5. Observability β€” OpenTelemetry, Pino, Better Stack, Langfuse, and PostHog.

The Archify source is the canonical map. To update it:

Terminal window
node /path/to/archify/bin/archify.mjs validate architecture \
apps/docs/public/diagrams/ordermatic-infrastructure-observability.architecture.json \
--quality showcase
node /path/to/archify/bin/archify.mjs deliver architecture \
apps/docs/public/diagrams/ordermatic-infrastructure-observability.architecture.json \
apps/docs/public/diagrams/ordermatic-infrastructure-observability.architecture.html \
--quality showcase
node /path/to/archify/bin/archify.mjs visual-check \
apps/docs/public/diagrams/ordermatic-infrastructure-observability.architecture.html

Then commit both the .json source and regenerated .html / .png.