9. Let History Be Your Guide
● Was database to slow last time?
● The database is too slow this time.
● Did the network cards fry last time?
● They're frying this time.
● Did Apache choke on memory leaks last time?
● It's Apache this time.
● Fixed things by using queues at your last job?
● Then fix them with queues at this job!
13. How to Single-Thread
Your Code
● Locks, Locks, Locks!
● Ignore scope and memory address space
● Frequently-updated single-row table
● Master Control Server process
● Single Master Queue
● Blocking threads which wait while checking on
a remote data source
14. The Old Way: Caching
Connection Caching Pool App Web
Server Server
App Web
Object Cache
DB
HTTP Cache
Data Cache
Server Server
App Web
Server Server
15. The New Way: Direct2DB
Web
Server
Web
DB
HTTP Cache
Server
Web
Server
16. Easy to Scale
● Web servers
● Caches
● Shared-nothing hosts
● Simple App Servers
For Wimps!
17. Hard to Scale
● Databases
● Queues
● Shared Filesystems
● Web Frameworks
For Real Developers!