Sample Web App

Classic 3-tier SaaS on AWS — rendered by Archify

Sample Web App Classic 3-tier SaaS on AWS — rendered by Archify AWS Region: us-west-2 sg-api :443/:8000 Users · Browser / Mobile · Architecture component Users Browser / Mobile Auth Provider · OAuth 2.0 · Architecture component · JWT + PKCE Auth Provider OAuth 2.0 JWT + PKCE CloudFront · CDN · AWS Region: us-west-2 CloudFront CDN Load Balancer · HTTPS :443 · AWS Region: us-west-2 › sg-api :443/:8000 Load Balancer HTTPS :443 API Server · FastAPI :8000 · AWS Region: us-west-2 › sg-api :443/:8000 API Server FastAPI :8000 Redis · cache :6379 · AWS Region: us-west-2 Redis cache :6379 PostgreSQL · primary :5432 · AWS Region: us-west-2 PostgreSQL primary :5432 S3 · static assets · AWS Region: us-west-2 · OAI protected S3 static assets OAI protected SQS · job queue · AWS Region: us-west-2 SQS job queue Worker · async jobs · AWS Region: us-west-2 Worker async jobs HTTPS verify JWT static read-through SQL enqueue Legend External Security Cloud Backend Database Message bus

Edge

  • • CloudFront CDN fronts all traffic
  • • S3 serves static assets via OAI

Application

  • • FastAPI behind an HTTPS load balancer
  • • Redis read-through cache
  • • Async work drained from SQS by a worker

Security

  • • OAuth 2.0 with JWT + PKCE
  • • API + LB isolated in a security group