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

Fix

  • Took an AMI backup, then moved from a general-purpose instance to a compute-optimised one (8 coresVerified)
  • Tuned php-fpm concurrency

Result

Stack

  • PHP
  • Laravel
  • Laravel Reverb
  • React
  • MySQL
  • Redis (Valkey)
  • nginx
  • php-fpm
  • Supervisor
  • AWS (EC2/RDS/ALB/VPC/IAM/SSM/ElastiCache)