Shipping It Fast, At Scale
Most features in this book ship fine on ordinary PHP: a fresh process per request, a database query, a response, done. Then traffic grows, or one page turns out to be slow, and βit worksβ quietly stops being enough. This chapter is for the second phase, when performance has become a measured requirement rather than a worry.
Three of the four pages are fixes. Read the fourth first: it tells you which fix you need.
- FrankenPHP and Laravel Octane: Worker Mode Performance: keep the application booted in memory between requests instead of rebuilding it every time.
- TYPO3: The Built-In Caching Framework: a layered cache with targeted invalidation, built into a large content platform.
- Nextcloud: Scaling a Self-Hosted Platform: what changes when a self-hosted PHP application grows from a team to an organization.
- Blackfire ($): Finding the Actual Bottleneck: measure where the time goes before you fix anything.