Layer 5Jun 2026
AWS performance fix for a live auction platform
Measured instead of guessing, found the real cause — then 0 errorsVerified in a live auction.
When bidding peaked, production was throwing network errors. I traced the cause to momentary CPU saturation and avoided scaling up without evidence. In a production environment I had never seen before, I went from diagnosis to fix in about 1 weekApprox..
Investigation
- Investigated production safely through SSM Session Manager
- Concurrent-connection tests at the scale of around 40 machinesApprox.
- Wrote a monitoring script that recorded production state every 2 secondsVerified
Fix
- Took an AMI backup, then moved from a general-purpose instance to a compute-optimised one (8 coresVerified)
- Tuned php-fpm concurrency
Result
- In a live auction lasting about 6 hoursVerified with about 10,000 itemsVerified: 0 errorsVerified — no network errors, timeouts or server errors
- Concurrency limit reached: neverVerified. Also set out clear thresholds for future scaling decisions
- Built a development and test environment fully separated from production (RDS, ElastiCache, ALB, least-privilege IAM)
Stack
- PHP
- Laravel
- Laravel Reverb
- React
- MySQL
- Redis (Valkey)
- nginx
- php-fpm
- Supervisor
- AWS (EC2/RDS/ALB/VPC/IAM/SSM/ElastiCache)