Architecture Deep Dive
Multi-Region Active-Active
To ensure global low latency, the application is deployed actively across three major AWS regions: Europe, US West, and Asia Pacific. Cloudflare routes incoming user traffic to the nearest regional CloudFront distribution. From there, dynamic API requests fall back to the regional API Gateway and Lambda functions, ensuring the shortest path for every user.
Global State with ElastiCache
Stateful link mappings must be queried at high speeds. Rather than relying on a centralized database that would introduce cross-globe latency, we use ElastiCache Redis with Global Datastore replication. Writes occur centrally and are asynchronously replicated to all regions, allowing the regional Lambdas to query Redis locally with sub-millisecond latency.
Automated Multi-Environment Rollouts
Infrastructure and application code changes progress strictly from DEV, to STAGING, to PROD. GitHub Actions orchestrates the build and deployment of the serverless functions to all regions simultaneously per environment. Security is maintained by using OpenID Connect (OIDC) for AWS authentication instead of static, long-lived credentials.