Zen Algorithms · Insurance Lab ← Architecture
Backend · Side-by-side

GCP ↔ AWS — service by service

Same capability, both clouds. Toggle the deployment profile to see the Elastic-Serverless vs. High-Scale realization. The Vercel frontend and the event-contract spine are cloud-agnostic.

CapabilityGCPAWSNotes
Stateless compute Cloud RunGKE Autopilot + Cloud Run Lambda / Fargate / App RunnerECS / EKS on Fargate serverless containers on GCP ↔ functions (Lambda) on AWS
Relational OLTP Cloud SQL Postgres 15AlloyDB Aurora Serverless v2Aurora provisioned same Postgres interface — switching profiles breaks nothing
Analytics / warehouseBigQueryRedshift / Athenarating generation only — off the hot path
Object storage (+WORM)Cloud Storage + Bucket LockS3 + Object Locktamper-proof copies of the audit log + premium ledger
Ordered queue (install gate)Cloud Tasks / Pub/Sub orderingSQS FIFOidempotent, per-case ordered (events for the same case always arrive in order)
Pub/sub fan-outPub/SubSNS + SQS / EventBridgescorecard fan-out
LLM / multimodalVertex AI (Gemini)Bedrock (Claude/Nova) / SageMakerVLM + agent
Vector store Vertex Vector SearchAlloyDB pgvector OpenSearch ServerlessAurora pgvector RAG corpus
SecretsSecret ManagerSecrets Managerleast-privilege per service (each service can read only its own secrets)
Keyless CI/CD authWorkload Identity FederationGitHub OIDC → IAM roleno long-lived keys
Blue/green deployCloud Run traffic shiftCodeDeploy / Lambda aliasseconds-level rollback
Global edgeHTTPS LB + Cloud CDN (+ serverless NEG)CloudFront + ALBcompare by capability, not object name
IaCTerraform + GCS (Cloud Storage) stateTerraform + S3/DynamoDB lock (the record of what's deployed, locked so two deploys can't collide)one codebase; one Terraform setup per cloud
Cloud-agnostic layer (shared by both): the Vercel frontend → BFF, the cat-model + RAG contracts, Terraform with OIDC, and the event-contract spine — the shared IDs (join keys) that let flows live in separate stores. Because the flows depend only on these, the cloud is a swappable realization.