Learn how to scale Laravel
summary
Shows concrete fixes and numbers: eager loading cuts 10 queries to 3 on a nested topics→series→content page, and object caching drops queries to zero when using a cache decorator pattern. Recommends sizing php‑fpm by RAM with a simple pm.max_children = (RAM − overhead) / MB per request rule, enabling OPcache (192 MB, max_accelerated_files ~10000) and reloading PHP‑FPM on deploy. Advises splitting MySQL to its own server, configuring trusted proxy headers for load balancers, and scaling workers with segmented queues (SQS handled 1.2M requests for ~$0.50).
AI-written summary · about
