Skip to main content

Service Architecture

Peak Gateway is composed of six Kotlin/Spring Boot microservices deployed on Google Cloud Run.

Services

ServicePurposeKey Endpoints
authAuthentication, OAuth2 clients, SAML providers, API key management/v1/auth/*, /v1/oauth-clients/*
managementMerchant CRUD, user management, dashboard, audit log, reports/v1/merchants/*, /v1/users/*
processingTransaction processing, settlements, subscriptions via TransIT/v1/transactions/*, /v1/settlements/*
online-txnHosted payments, checkout sessions, webhooks, wallet, tokens/v1/checkout/*, /v1/webhooks/*
device-provisioningTerminal provisioning, device credentials, activation/v1/devices/*, /v1/provisioning/*
statusHealth monitoring, readiness probes/health

Infrastructure

  • Runtime: Google Cloud Run (auto-scaling, per-request billing)
  • Database: Cloud Spanner (via PGAdapter — PostgreSQL wire protocol)
  • Auth: Firebase Auth with multi-tenant identity platform
  • Build: Bazel monorepo with Kotlin JVM targets
  • CI/CD: GitHub Actions → Cloud Build → Cloud Run
  • Observability: Structured ECS logging, OpenTelemetry tracing → Cloud Trace
  • Notifications: Pub/Sub → peak-shared-services (SendGrid email, Twilio SMS)

Request Flow

Client → Cloud Run (auth) → Firebase Auth validation
→ Cloud Run (management|processing|online-txn)
→ Cloud Spanner (via PGAdapter)
→ TransIT (for payment processing)

Environments

EnvironmentAPI DomainPortal
Productionapi.peakgateway.coadmin.peakgateway.co
Stagingstaging-api.peakgateway.costaging-admin.peakgateway.co