Back
Year
2024
Tech & Technique
AWS VPC, EC2, Application Load Balancer, RDS (MySQL), S3, Auto Scaling, CloudWatch, SNS, Nginx
Description
A highly available, fault-tolerant three-tier web deployment of SamCart, a premium e-commerce platform on AWS, following the AWS Well-Architected Framework. The system is designed to handle sudden traffic spikes through automated scaling and isolated network layers to ensure high security and reliability.
The architecture divides the workloads across public and private subnets: public subnets route incoming requests through an Application Load Balancer, private subnets run the application server instances inside an Auto Scaling Group, and isolated private database subnets host the database.
The architecture divides the workloads across public and private subnets: public subnets route incoming requests through an Application Load Balancer, private subnets run the application server instances inside an Auto Scaling Group, and isolated private database subnets host the database.
My Role
I designed and provisioned the entire cloud infrastructure on AWS. This involved creating the custom VPC, route tables, and NAT Gateways for secure outbound access, setting up multi-AZ database replication on Amazon RDS, and configuring CloudWatch dashboards with SNS alerts to monitor system health.
System Architecture Flow
VPC➔Public Subnet (ALB)➔Private Subnet (EC2)➔Database Subnet (RDS)➔S3 Storage➔CloudWatch + SNS
User Request ➔ Internet Gateway ➔ ALB ➔ EC2 (App Tier) ➔ RDS (Database Tier) & S3 (Assets) / CloudWatch tracks metrics
The Challenge
Preventing database connection bottlenecks and query delays during sudden auto-scaling events when multiple new application instances start up.
Engineered Solution
Implemented Amazon RDS Proxy to manage connection pooling, and configured Redis cache on the application tier to store frequent database queries, reducing direct database load by 60%.