Migration of 18 e-commerce sites to the cloud
[Architecture · Grupo Diveco]
From EC2 monoliths to serverless horizontal scaling. Led the migration roadmap of 18 e-commerce sites from monolithic architecture (EC2) to Serverless with horizontal scaling (Fargate + Aurora), eliminating chronic regional failures and achieving 50% infrastructure cost reduction despite increased traffic.
Results
- 50%[Result]Infrastructure cost reduction
- 99%[Result]Guaranteed availability
The problem
18 e-commerce sites hosted on oversized EC2 instances with databases coupled on the same servers. High regional failure risk where a bad practice simultaneously affected groups of brands. Rigid vertical scalability with high fixed costs and recurring outages due to lack of deployment standardization.
The solution
I defined a migration strategy to a Serverless model with horizontal scaling using AWS Fargate and Aurora Serverless. Decoupled databases from compute, isolating each platform. Created implementation manuals and provided specialized technical support to the team to ensure repeatable, high-quality deployments for all 18 platforms.
The challenge
The regional monolith risk
- High regional failure risk
- All sites were hosted on oversized EC2 instances with databases on the same servers (dangerous coupling). A bad deployment practice or outage simultaneously affected groups of brands with regional presence.
- Rigid vertical scalability
- The system could only grow by purchasing larger servers, implying high fixed costs and poor response to traffic spikes.
- Chronic bad practices
- Lack of deployment standardization caused recurring outages, impacting reputation and sales.
The approach
Serverless horizontal scalability
- The serverless principle
- I abandoned expensive and risky vertical scaling, migrating to a horizontal scaling model with AWS Fargate and AWS RDS Aurora Serverless. This allows the system to scale elastically only when traffic demands it.
- Critical decoupling
- I separated databases from compute, isolating each platform and eliminating the risk of one site's outage affecting a group of brands.
- Standardization and replication
- I supervised the migration process, creating implementation manuals and providing technical support to the e-commerce team to optimize the new infrastructure, ensuring repeatable, high-quality deployments for all 18 platforms.
The impact
Resilience and financial savings (ROI)
- Immediate cost savings
- Serverless infrastructure optimization (Fargate and Aurora) resulted in a 50% infrastructure cost reduction, despite supporting higher traffic volume than the previous system.
- Operational stability
- Recurring outages were eliminated, ensuring business continuity for all 18 brands across the region.
- Team empowerment
- The manuals and support provided ensured that the internal team could manage and maintain the new cloud-native ecosystem autonomously, achieving adoption of new deployment best practices.
Technologies
AWS Fargate · AWS Aurora Serverless · Docker · AWS ECS · Horizontal Scaling · Risk Management · CloudWatch