| CARVIEW |
Table of Contents
1. Ditching the LAMP Stack
- What's wrong with LAMP?
- The Scalable LHNMPRR Stack
2. DNS: Why you need to care
- DNS Load Distribution
- DNS Resolution
3. Load Balancing with HAProxy
- HAProxy Basics
- Configuring HAProxy
- Choosing the best hardware
- Automatic failover with keepalived
- Tuning linux for network heavy workload
- Issues at scale
4. Scaling Nginx and PHP-FPM
- Choosing the right version of PHP
- Nginx and PHP-FPM
- Choosing the best hardware for your application server
- Using a PHP Opcode cache
- Tuning Linux for PHP
- Scaling session handling
5. MySQL Tuning+Scaling Guide
- NoSQL Performance from MySQL
- Timeouts and libmysql (or how to go down for 12 hours)
- Tuning your MySQL Config (my.cnf)
- Tuning Linux for an intensive database
- Load Balancing MySQL Slaves
- Accepting master as a SPOF
- Understanding issues with NUMA
- Choosing the best hardware
- Online schema changes
6. Cache Server: Using Redis
- Redis, Memcached or APC?
- Redis Commands
- The importance of Atomic Operations
- Performance limitations
- Installing Redis from Dotdeb
- Installing the phpredis C extension
- Tuning Redis for Performance
- Scaling Redis to Multiple Servers
- Avoiding the Dogpile
- Russian Doll Caching
- Redis Bitmaps
- Redis Notification Feeds
7. Workers: Async Resque Workers
- Why use a background queue?
- Getting started w/ Resque and php-resque
- Writing a Resque Job
- Alternatives to Resque
- Things you should put in queue
8. Coding and Debugging at Scale
- Scaling your code
- Capistrano Deployment
- Live debugging PHP with strace
About the Author
Hey! I'm Steve Corona. I spent 5 years scaling Twitpic to handle 60 million users and 20 billion HTTP requests per month.
In the early days of Twitpic, I slept with my laptop so I could wake up and restart Apache when it crashed in the middle of the night. I had no idea what I was doing— the thing about scaling is.. you don't get to learn it until you need it. It's trial by fire.
I'm in the middle of writing "nginx: A Practical Guide to High Performance" for O'Reilly. It'll be out around September, and I'm super excited!
I live in San Francisco, CA. Follow me on Twitter (@stevencorona)
The VC-Funded Package
It's not cheap, but it includes everything, including a 1-on-1 architecture critque by me. Get all of the guides, talks, config templates... basically everything I've ever written about scaling. It's the best material on the planet for scaling a growing startup.
Scaling PHP Book
With all the great content here it might be easy to forget the book. This is the core of the entire product and is insanely valuable. You'll get the 158 page book in PDF, ePub, and Mobi format.
Architecture Critique
Send me the details of your stack and architecture and I'll critique your scalability and single points of failure.
Config Templates
A collection of 80+ of configuration templates from the book to use as a starting point (HAProxy, Nginx, PHP, and MySQL)
Scaling Memcache Handbook
Learn how to tune and tweak Memcache (and Redis) so they don't fall over in production. You'll learn how to tune the number of threads, slab size, and more.
MVC Framework Caching
If you're using a MVC Framework (Laravel, Symphony, CakePHP), you might be missing out on some huge performance gains. Most frameworks do NOT cache internal data. This guide walks you through tacking down a performance problem in an MVC framework.
HTTP & FastCGI Caching w/ Nginx
Learn what to do and (more importantly) what NOT to do when using HTTP Caching, as well as all the knobs you can turn to speed up your webapp with HTTP and FastCGI caching in Nginx.
Benchmarking & Load Testing Your PHP Code
Put the rubber to the road and impress your users by actualling TRACKING how well your webapp is performing. The truth is, most poeple don't know which tools to use or even where to start benchmarking.
"Scaling LAMP doesn't have to suck"
Get a professional recording of a talk I gave about Scaling PHP, Scaling LAMP doesn't have to suck. Includes new topics, like using NSQ for queuing.
How DNS is your Secret Single-Point-of-Failure
Most of us have a secret lurking.. a single-point-of-failure that isn't even on the radar. In this guide, you'll learn how to mitigate against DNS resolution ruining a full night of sleep.
Async APIs & Background Jobs w/ PHP
Learn the best way to implement backgrounding and asynchronous workers in PHP to make your webapp run faster and offload more work the background.
Horizontally Scaling 1 Million File Uploads
What if you had to handle 1 million file uploads in PHP? How would you do it? Where would you start? How would you architect your storage? File processing? This guide teaches you exactly how.
MySQL Hot Backups in Production
Traditional MySQL backups are unforgiving and nearly impossible to do without shuttind down the database. In this guide, I'll teach you how to backup TBs of MySQL data on a live server with open-source tools.
Resizing 100 Images/Sec
Advanced in-depth tuning on getting PHP to process (and resize) hundreds of images per second in PHP. I walk you through a crazy-advanced setup that tweaks the nginx buffer cache, filesystem, and GraphicsMagick to squeeze out every last drop.
The Pro Package
The BEST option for individuals or companies just getting started. Includes all of the best material and most of the guides to help you scale your app in the real world.
Scaling PHP Book
With all the great content here it might be easy to forget the book. This is the core of the entire product and is insanely valuable. You'll get the 158 page book in PDF, ePub, and Mobi format.
Config Templates
A collection of 80+ of configuration templates from the book to use as a starting point (HAProxy, Nginx, PHP, and MySQL)
Scaling Memcache Handbook
Learn how to tune and tweak Memcache (and Redis) so they don't fall over in production. You'll learn how to tune the number of threads, slab size, and more.
MVC Framework Caching
If you're using a MVC Framework (Laravel, Symphony, CakePHP), you might be missing out on some huge performance gains. Most frameworks do NOT cache internal data. This guide walks you through tacking down a performance problem in an MVC framework.
"Scaling LAMP doesn't have to suck"
Get a professional recording of a talk I gave about Scaling PHP, Scaling LAMP doesn't have to suck. Includes new topics, like using NSQ for queuing.
How DNS is your Secret Single-Point-of-Failure
Most of us have a secret lurking.. a single-point-of-failure that isn't even on the radar. In this guide, you'll learn how to mitigate against DNS resolution ruining a full night of sleep.
Async APIs & Background Jobs w/ PHP
Learn the best way to implement backgrounding and asynchronous workers in PHP to make your webapp run faster and offload more work the background.
MySQL Hot Backups in Production
Traditional MySQL backups are unforgiving and nearly impossible to do without shuttind down the database. In this guide, I'll teach you how to backup TBs of MySQL data on a live server with open-source tools.
Resizing 100 Images/Sec
Advanced in-depth tuning on getting PHP to process (and resize) hundreds of images per second in PHP. I walk you through a crazy-advanced setup that tweaks the nginx buffer cache, filesystem, and GraphicsMagick to squeeze out every last drop.
Just The Book
The basic option is still great!If you only want to learn the fundamentals, if you're on a budget, you won't regret investing in the core 158 page eBook. The book is delivered instantly in PDF, ePub, and Mobi format.
Get a free chapter from the book
Backed by my Unconditional, No Risk, 100% Happiness Guarentee
You can get a 100% refund, no questions asked, forever. It's as simple as this— if you're not happy, I don't deserve your money. I've sold over 5000 copies and only 7 people have asked for a refund.
Package Comparison
Pro Package
- 158 Page PDF/ePub/Mobi
- Config Templates
- Free Updates for Life
- Config Templates
- Scaling LAMP doesn't have to suck
Guides/Case Studies
- Scaling Memcache Handbook
- MySQL Hot Backups in Production
- Resizing 100 Images/Second
- How DNS is your Secret Single-Point-of-Failure
- Async APIs & Background Jobs w/ PHP
- MVC Framework Caching
The VC-Funded Package
- 158 Page PDF/ePub/Mobi
- Config Templates
- Free Updates for Life
- Config Templates
- Scaling LAMP doesn't have to suck
Architecture Critque
Send me the details of your stack and architecture and I'll critique your scalability and single points of failure.
Guides/Case Studies
- Scaling Memcache Handbook
- MySQL Hot Backups in Production
- Resizing 100 Images/Second
- How DNS is your Secret Single-Point-of-Failure
- Async APIs & Background Jobs w/ PHP
- MVC Framework Caching
- HTTP & FastCGI Caching w/ Nginx
- Benchmarking & Load Testing your PHP Code
- Horizontally scaling 1 Million File Uploads
Questions?
Can I upgrade later?
Yes, the last page of the book contains links to upgrade to the basic and complete packages.
What format does the book come in?
The book comes in ePub, PDF, and Mobi format. It works great with eReaders like the iPad and Kindle, or read it on your desktop.
What if I hate it?
I've sold over 2,000 copies and only 3 people have asked for a refund. The odds are high that you'll love it, but just in case, you have 60 days to get a full refund.
Is the book ready for PHP 7?
Absolutely. While the book is targeted at all of the modern versions of PHP, it specifically focused for people using PHP 5.6 and 7. It also includes hard-to-find information about the Zend Opcache and APC changes.
Is it suitable for beginners?
Yup, but you should already know PHP and some Linux basics. I try hard to guide you through the server stuff, but you'll need to know how to login to a server with SSH and run apt-get.
Can I still use MySQL?
Duh! I do touch a little bit on NoSQL, but I'm a huge fan of MySQL and show you how to scale it to make it faster and more redundant.
Still not ready to buy?
It's your choice, you can spend 2 years learning this stuff on your own instead. If you're still not convinced, let me send you a free chapter from the book— no obligation.
