Scaling Laravel
summary
A Laravel app at Sport Monks runs ~1,000 API requests/sec and 24,000 DB queries/sec and is spending 75% of DB CPU on one unindexed failed_jobs query that an added index yields an 87,000x speedup and is merged into the framework. Queue workers are IO‑bound so autoscaling lags, prompting managed queues that scale on queue pressure. A streaming load test sustains 17,000 rps with 39.6M requests and 173 failures. Pile moves 13 apps off a Vapor/Forge hybrid in 12 weeks and halves its bill.
AI-written summary · about
