Scaling PHP Applications
184 pages
English
PDF
4.5

Scaling PHP Applications

Scaling PHP Applications

Author:

Year:

Summary:

Introduction

The book "Scaling PHP Applications" by Steve Corona is not just another tutorial on language syntax, but a unique practical guide for those who have already moved beyond "Hello, World!" and encountered real problems with performance and growth. Written in 2014, the book remains relevant due to its deep analysis of fundamental scaling principles that do not depend on PHP versions or trendy frameworks. The author, former CTO of Tumblr, shares experience gained in battle with millions of users.

What is this book about?

The book is dedicated to turning a simple PHP application into a high-load system capable of withstanding peak loads. Steve Corona systematically breaks down all levels of the stack: from code and server to database and caching. The main focus is on practical solutions, not abstract theories. You will learn how to avoid common mistakes that kill performance and how to design architecture that grows with your project.

Who is this book for?

The book is intended for experienced PHP developers (middle/senior), system administrators, and DevOps engineers who already have experience building web applications and want to understand how to prepare them for traffic growth. Beginners will find it challenging — knowledge of PHP, database work, and basic web server principles is assumed.

What will the reader learn?

  • PHP code optimization: profiling, eliminating bottlenecks, working with memory and loops.
  • Web server configuration: configuring Nginx and Apache for high performance, load balancing.
  • Working with databases: sharding, replication, query and index optimization.
  • Caching: strategies for using Memcached, Redis, Varnish, opcode caching.
  • Queue architecture: asynchronous task processing (RabbitMQ, Gearman).
  • Monitoring and profiling: tools for identifying issues (New Relic, XHProf).
  • Deployment and continuous integration: deployment automation, zero-downtime strategies.

Strengths

The main advantage of the book is real-world experience. The author does not simply paraphrase documentation but shares specific cases from Tumblr's practice. For example, how they dealt with the "curse of the first byte" or how to properly organize MySQL sharding. The book is written in a lively language, without excessive academicism, and contains many ready-made configurations and code snippets. The chapter on caching deserves special mention — it alone is worth the entire book. It is also pleasing that the author is not afraid to criticize popular but ineffective approaches.

Who is recommended

The book is a must-read for everyone working on projects with a growing audience — from startups to large portals. It will be useful both for PHP developers who want to move to the architect level and for DevOps specialists responsible for infrastructure. If you are planning to launch a service that must withstand a load of thousands of requests per second — start with this book.

Recommendations