๐จ REQUEST: POST /orders
๐ก๏ธ Ingress DMZ
10.0.1.0/24
๐ฆ API Gateway & Mesh
10.0.2.0/24
โ๏ธ Private App Tier (K8s Cluster)
10.0.3.0/24
๐ Secure Data Vault
10.0.4.0/24
๐ป
Web Application
Next.js 14 SSR ยท SPA
Sends HTTPS requests with TLS 1.3 encryption.
Port 443
JSON / REST
๐
Route 53 Anycast DNS
Global Traffic Director
Resolves domain to closest healthy server IP.
UDP 53
100% SLA
โก
Cloudflare Edge CDN
Static Caching & Shield
Serves static files in <10ms from 310+ cities.
HTTP/3 QUIC
Brotli Cache
๐ฑ
Mobile App Clients
iOS & Android React Native
High-efficiency binary Protobuf communication.
gRPC / TLS
Cert Pinning
๐
Third-Party Webhooks
Stripe ยท GitHub ยท Twilio
HMAC-SHA256 signed payment & event webhooks.
Inbound HTTPS
HMAC Signed
๐ก๏ธ
AWS WAF & Shield
Layer 7 Threat Firewall
Blocks SQLi, XSS, SSRF & malicious bots.
HTTPS / 443
OWASP Top 10
โ๏ธ
Application Load Balancer
Active-Active Multi-AZ (ALB)
Terminates public TLS & distributes traffic.
TLS 1.3 Term
Auto-scaled
๐ช
Teleport Zero-Trust Proxy
Audited Bastion / SSH Access
MFA-gated engineer access with session recording.
SSH / 3022
Cert Based
๐
NAT Gateway Cluster
Outbound SNAT Egress Filter
Allows private servers to reach internet securely.
Outbound Only
Zero Inbound
๐ฆ
Envoy API Gateway
Ingress Reverse Proxy & Router
Validates JWT tokens, rate limits, and routes paths.
Port 8080
Rate Limiting
๐
Auth & Identity Service
OAuth 2.1 ยท OIDC ยท JWT Engine
Verifies credentials and issues signed RS256 tokens.
gRPC 50051
Argon2id
๐
HashiCorp Vault / KMS
Dynamic Secrets & Rotation
Provides ephemeral database credentials & encryption keys.
mTLS API
HSM Backed
๐ธ๏ธ
Istio Service Mesh
Zero-Trust Pod Communication
Enforces mutual TLS (mTLS) with SPIFFE identities.
Port 15001
mTLS Auto
โ๏ธ
Core API Pod [AZ-1A]
Go Microservice (AZ-1a)
Processes transactions & domain logic.
Port 8080
HPA Pod
โ๏ธ
Core API Pod [AZ-1B]
Go Microservice (AZ-1b)
Cross-AZ redundancy handling read traffic.
Port 8080
Multi-AZ
๐
Checkout Service
Saga Orchestration
Coordinates distributed ACID orders.
gRPC 50051
ACID State
๐ณ
Payment Vault
PCI-DSS Tokenized Enclave
Isolated enclave handling credit card tokens.
Nitro Enclave
PCI-DSS L1
๐จ
Apache Kafka Event Stream (3 Brokers)
Partitioned High-Throughput Log Stream ยท KRaft Mode
Decouples heavy background jobs from fast synchronous user requests.
TCP 9092
3x Replication
Zero Data Loss
โก
Background Worker Pool (Celery / BullMQ)
KEDA Autoscaled Asynchronous Consumers
Consumes Kafka events to generate invoice PDFs and send transactional emails.
Queue Listeners
DLQ Retry
๐
OpenTelemetry & Prometheus APM
Distributed Tracing (W3C Traceparent) & Live Metrics
Tracks end-to-end P99 latency and system health across every microservice.
OTLP 4317
Jaeger / Grafana
๐
Redis Cluster (6 Nodes)
In-Memory Cache & Active Session Store
Serves data in 0.3ms, preventing database overload.
Port 6379
Sentinel Failover
๐๏ธ
PostgreSQL Primary Master
AWS Aurora Multi-AZ Write Master (ACID)
Permanent authoritative ledger for financial orders.
Port 5432
AES-256 KMS
WAL Stream
๐
PostgreSQL Read Replica Pool
Asynchronous WAL Read Offloader
Handles all search & report queries to keep master fast.
Port 5432
Auto-Failover
๐
OpenSearch / Elasticsearch Cluster
Distributed Full-Text Search & Log Analytics
Powers sub-second product catalog search & indexing.
Port 9200
Sharded Index
๐ชฃ
Amazon S3 Encrypted Object Store
Immutable Blobs, Receipts & Cold Storage
Stores PDF invoices and backups via private VPC endpoints.
VPC PrivateLink
11 9s Durability