I spent 3 years scaling Twitpic to over 60 million visitors and 20 billion HTTP Requests. I'm sharing everything I've learnt in this ebook so you can skip over the trial-and-error and head straight to the techniques.Covers the entire stack- Nginx, MySQL, RedisIn-Depth MySQL TuningWe discuss each parameter, why it exists, and how to tune it.Nginx and PHP-FPMMove away from Apache and learn how to tune Nginx/PHP-FPM.Redis and MemcachedWe discuss scaling sessions, Russian Doll Caching, and the "dogpile".Result-proven techniquesThis content doesn't exist anywhere elseWhen I set out to write Scaling PHP Apps, my goal was to write about topics that didn't really exist anywhere else. This isn't regurgitated documentation- it's real life scaling techniques, mixed with case studies and in-depth exploration. Make no mistake, this is a highly technical book, and you should already be comfortable with PHP.If you've ever researched scaling, you know nothing like this book really exists anywhere else. It's an important book that'll save you hours of research and testing. Readers have told me it's blown their expectations away and that they've implemented hundreds of tidbits into their stack.This book is filled with 150-pages of real-life, practical content. Changes that you can implement today!* Settle the Persistent Connection debate (with benchmarks)* Detailed explination of each important MySQL Setting* Understand exactly how NUMA impacts MySQL* Why you should scrap Apache and mod_php* Bugs in Memcached you've never heard about* How DNS lookups can crash your whole application* Clever uses of Redis for stats and performance* How to debug PHP with strace and xhprof* Ways to benchmark MySQL, HAProxy, Nginx, and PHP
Ottimo manuale, che si concentra più sulla parte sistemistica della scalabilità che su quella di programmazione in PHP. Spiega come ottimizzare nginx, mysql e anche il kernel, oltre che come installare e configurare al meglio sistemi di caching e di HA.
Tra i difetti, il trattare un determinato caso specifico (quello di Twitpic), invece di estendere le spiegazioni, per esempio, a PostgreSQL, ad Apache o in generale ad alternative ai software consigliati.
Ma il difetto più grande è il prezzo, rapportato al numero limitato di argomenti trattati.
This is the best book available for the PHP Developers. It's exactly to the point. I loved it and it helped me just when I was on the job of working on a scalable application.