PORTFOLIO/SYSTEMS/AegisScale

AegisScale

5x traffic spikes absorbed with zero dropped payloads

Event-driven cloud microservices on AWS

00 / TECHNOLOGY
Cloud/AWS
ECS FargateALBSQSLambdaDead-Letter QueuesRDS PostgreSQL (read replicas)S3 (lifecycle policies)CloudWatchECRVPC (public/private subnets, NAT Gateways)IAM (least privilege)
IaC & CI/CD
TerraformGitHub Actions (OIDC)multi-stage Docker
Backend
FastAPIPython
01 / FORMULATION

Problem formulation

Production cloud ingestion pipelines must absorb bursty, unpredictable traffic surges without dropping payloads or exceeding cloud compute budgets. Standard monolithic architectures or synchronous request-response loops fail during sudden 5x traffic spikes, causing dropped requests and database connection saturation. Infrastructure must also guarantee 100% reproducible disaster recovery and sub-3-minute deployment rollouts.

02 / ARCHITECTURE

Subsystem topology

AWS TOPOLOGY|MULTI-AZ EVENT-DRIVEN INGESTION
REV: 2026.09 // SIMULATION: ACTIVE
AWS VPC (10.0.0.0/16) // HIGH-AVAILABILITY CLUSTERCLIENTS5x SPIKE INGRESSHTTPSAWS ALBDual-StackRound RobinHealth: 200 OKAZ-1A // PRIVATE SUBNETAZ-1B // PRIVATE SUBNETECS FARGATE INGESTIONFastAPI Microservice (Docker)Rolling Deploy < 3 min (OIDC)ECS FARGATE INGESTIONFastAPI Microservice (Docker)Multi-AZ RedundancyAMAZON SQSFIFO DecouplingVis. Timeout: 30sZero DroppedAbsorbs 5x PeakDEAD-LETTER QUEUERetries: max 3Dropped: 0AWS LAMBDAEvent WorkersAuto ConcurrencyBatch Size: 10RDS POSTGRESQLRead-Replicas-38% OVERHEAD(Simulated compute)REG: AP-SOUTH-1 // IA-C: TERRAFORMREPRODUCIBLE 100%
FIG. 01ARCHITECTURAL TOPOLOGY & SUBSYSTEM DATAFLOW

The system is provisioned on AWS across multiple Availability Zones using modular Terraform (IaC) templates, enforcing zero drift and least-privilege IAM policies. Ingress traffic routes through an AWS Application Load Balancer to containerized FastAPI microservices on ECS Fargate.

High-throughput ingestion is strictly decoupled using an Amazon SQS FIFO buffer. Lambda workers consume messages in batches of 10, processing workloads asynchronously. Any message failing after 3 retries is diverted to a Dead-Letter Queue (DLQ), guaranteeing zero dropped payloads during 5x traffic surges. Read-replicas on RDS PostgreSQL reduce compute overhead by 38% under simulated load.

03 / TRADE-OFFS

Architectural decisions

DECISION 01

Multi-AZ Terraform IaC with least-privilege IAM policies

Enforces 100% reproducible state management across custom VPCs, subnets, and NAT Gateways.

DECISION 02

Decoupled ECS Fargate ingestion via Amazon SQS and Lambda workers

Absorbs 5x traffic spikes with zero dropped payloads via Dead-Letter Queues (DLQ).

DECISION 03

RDS PostgreSQL read-replicas, S3 lifecycle policies, and CloudWatch alarms

Reduces simulated cloud compute and storage overhead by 38%.