Benchmarking AWS Amplify, Lambda, Web Functions, and ECS for Next.js

"Should this run on Amplify, Lambda or ECS?" is usually answered with a feature list. I wanted numbers. So I took one Next.js app, deployed it to four AWS runtimes in the same account and Region, including the new Lambda Web Functions, and measured the things that decide the choice in practice: latency under load, cold starts, CPU speed, real limits, and the monthly bill at four traffic levels.Lambda and ECS run the exact same container image, and the Web Function runs the same files from a .zip. Amplify Hosting builds the same Git commit. Every command, script, and result is in a public repository, with deploy and cleanup steps: Four results surprised me:One ECS Fargate task with 0.5 vCPU
…