ZAP Logo
Documentation
APIs: 350 Endpoints
DocsZAP EcosystemFull System Architecture

ZAP Ecosystem & Database Server Architecture

Complete end-to-end topology mapping 4 client applications, API Gateway, 4 Spring microservices, explicit Database Server Cluster connections, and external payment gateways.

GCP Infrastructure Environment Matrix (PROD & UAT) Dual-Environment Active
PRODUCTION (PROD) https://prod-api.zap.vn
  • GCP Project: zap-ecosystem-production
  • Cloud SQL DB: zap-postgres-db-prod (PostgreSQL 15)
  • SSL Certificate: zap-prod-api-cert (Managed SSL)
  • Target Clients: Merchant POS WPF, Kiosk & Branded Ordering Apps (Pendogo, Pho24)
UAT / SANDBOX https://uat-api.zap.vn
  • GCP Project: zap-ecosystem-sandbox-504003
  • Cloud SQL DB: zap-postgres-db-final (Sandbox DB)
  • SSL Certificate: zap-uat-api-cert-v2 (Managed SSL)
  • Target Clients: Internal TestFlight QA, Staging Build & Developer Sandbox

Microservice Domain Breakdown

identity-service (:8081)

Handles E.164 User Registration, BCrypt Auth, Hardware RSA-2048 Public Key Binding, JWT Refresh Token Rotation, and Merchant Tenant RBAC.

commerce-service (:8082)

Atomic Redis Lua Cart Mutate, Product Catalog, Voucher Reservation, POS Order Checkout, and Real-Time Kitchen Order Display (KDS).

payment-service (:8083)

Payoo, VietQR Instant Bank Transfer & Stripe Webhook Callbacks, Redis Lua Idempotency Lock, and Transactional Outbox Event Dispatcher.

notification-service (:8084)

FCM Push Notification Dispatcher for Customer Apps and Telegram Ops Bot (@zap_ops_alert_bot) for instant merchant order & alert triggers.