brace for impactflight plan 1. make a plan 2. make it scale? 3. make it fast! 4. [ test, size ] 5....
TRANSCRIPT
![Page 1: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/1.jpg)
@bephpug 2012
Christoph Lühr@chluehr
Brace for impact
![Page 2: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/2.jpg)
basilicom
![Page 3: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/3.jpg)
![Page 4: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/4.jpg)
High Load Scenarios(short term)
![Page 5: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/5.jpg)
§DISCLAIMER
PHP
![Page 6: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/6.jpg)
( if successful )
== TV
![Page 7: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/7.jpg)
/."Slashdot Effect"
( now: Facebook, Bild.de, ... )
![Page 8: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/8.jpg)
Bäm!
![Page 9: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/9.jpg)
Why care?
![Page 10: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/10.jpg)
$$$TV ads are expensive
downtime == wasted money
![Page 11: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/11.jpg)
Why me?5 yrs++
Deutsche Bahn, Ferrero, PeugeotBMW, Sony, UMG, studiVZ, ...
![Page 12: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/12.jpg)
Image source: http://www.flickr.com/photos/stinajonsson/3932774410 CC BY-NC 2.0
![Page 13: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/13.jpg)
Flight Plan
1. MAKE A PLAN2. MAKE IT SCALE?3. MAKE IT FAST!4. [ TEST, SIZE ]5. WATCH IT!
6. BONUS: EXAMPLES
} Architecture
![Page 14: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/14.jpg)
Brace for impact
![Page 15: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/15.jpg)
Brace for impactPlan
![Page 16: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/16.jpg)
Knowledge is PowerMedia plans
TV schedules
![Page 17: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/17.jpg)
![Page 18: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/18.jpg)
Planning
● just Peaks matter
● Media / marketing exposure?
● Target group? Click Rate?
● Max. daily visits? Top hour?
● Pages ^ visit, resources ^ page?
● Do not forget storage / traffic requirements.
![Page 19: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/19.jpg)
Planning
![Page 20: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/20.jpg)
Planning
![Page 21: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/21.jpg)
Architecture( & Tool Time )
![Page 22: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/22.jpg)
E l a s t i c i t yScaling
Fancy Solution
![Page 23: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/23.jpg)
1 4 5
7 n
1 2 3
6
"just add more boxes.."
![Page 24: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/24.jpg)
really?
![Page 25: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/25.jpg)
System complexity ++
![Page 26: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/26.jpg)
Database?
![Page 27: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/27.jpg)
Time to spawn?.......
![Page 28: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/28.jpg)
TV-Ad
10 sec. later
10 min. later
![Page 29: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/29.jpg)
Performance ++
Traditional Solution
![Page 30: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/30.jpg)
Performance
SERVER BROWSER USER
![Page 31: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/31.jpg)
Performance
SERVER BROWSER USER
FAST!
![Page 32: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/32.jpg)
Performance Rules
![Page 33: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/33.jpg)
Rule #1
Don't get hit.● landing page on a different server.
![Page 34: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/34.jpg)
Rule #2
Let others do the work● use a Content Delivery Network
(CloudFlare is free).
![Page 35: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/35.jpg)
Rule #3
Serve static content
![Page 36: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/36.jpg)
SERVE
STATICCONTENT!
![Page 37: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/37.jpg)
Rule #3
Serve static content● use a caching reverse proxy:
Varnish● NGINX is fast, too● "static" can even mean only 5 mins.
![Page 38: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/38.jpg)
Rule #4
Serve static content once● use correct cache headers● leverage browser caches● allow external proxies to cache
your content.
![Page 39: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/39.jpg)
Rule #5
Minimize requests● compress HTML● combine / minify JS, CSS● inline images● == get a good SpeedRanking.
![Page 40: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/40.jpg)
Rule #6
Avoid dynamic requests● load data upfront● stay in browser, validate via JS first● collect data / batch requests● load only on action (captcha, ...).
![Page 41: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/41.jpg)
Rule #7
small is BIG● don't load a framework for an insert()● just write a logfile?● use nodeJS.
![Page 42: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/42.jpg)
Rule #8
De-couple / postpone● use queuing and finite # of workers● use external services
(transloadit, youtube, ...).
![Page 43: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/43.jpg)
Rule #9
Degrade gracefully● skip doing hard work (thumbnails,...)● hide expensive functionality (edit)● ... to keep the site online.
![Page 44: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/44.jpg)
Secret Rule #10
Cheat● discard requests● stats & voting: sample only 10%● simulate server calls (spinner).
![Page 45: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/45.jpg)
Final Rule #11
Don't go offline.● put campaign on different server● limit resources, don't kill your server● if all fails, be sure to display a notice.
![Page 46: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/46.jpg)
![Page 47: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/47.jpg)
Testing
● Goal: Determine app limits/threshold
● Testing is HARD● Test the production environment
● Monitor performance & resources● httperf, apache bench, siege, JMeter.
![Page 48: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/48.jpg)
Sizing & Tuning
![Page 49: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/49.jpg)
Sizing & Tuning
● RAM
● CPU cores / CPU speed
● IO: Storage Type / Storage Size
● Cache memory (Varnish)
● MySQL tuning (Caches, ...)
● System/Network tuning (max_open_files, ...)
● Apache (max. childs, ...)
![Page 50: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/50.jpg)
Rinse, repeat.(building, testing, sizing)
![Page 51: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/51.jpg)
Online:
Monitoring
Image source: http://www.officialpsds.com/Green-Radar-Screen-PSD61002.html Attribution
![Page 52: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/52.jpg)
Monitoring
● Access (Google Analytics)
● External Availability (Pingdom, ...)
● Speed, Latency &Resources (New Relic, ...)
● Application (# participants, ... StatHat)
● OR homegrown (statsd, etc.).
![Page 53: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/53.jpg)
Examples
![Page 54: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/54.jpg)
Forms
![Page 55: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/55.jpg)
Forms
1
2
3
![Page 56: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/56.jpg)
Gallery detail pageshttp://foo.com/view/?key=3Jsk31KOsk2
IMAGE
![Page 57: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/57.jpg)
Gallery detail pageshttp://foo.com/view/?key=3Jsk31KOsk2 ==> :-(
http://foo.com/view/ #3Jsk31KOsk2 ==> :-)
static!3Jsk31KOsk2.JPG
![Page 58: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/58.jpg)
Simplified setup
![Page 59: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/59.jpg)
Summary
![Page 60: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/60.jpg)
SERVE
STATICCONTENT!
![Page 61: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/61.jpg)
CRITICAL
LOAD FOLLOWS
![Page 62: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/62.jpg)
Suggestions?
Questions?
![Page 63: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/63.jpg)
ContactChristoph LühreMail: [email protected], [email protected] Twitter: @chluehr
Slides licenseAttribution-NonCommercial-ShareAlike 3.0http://creativecommons.org/licenses/by-nc-sa/3.0/
Thanks... and always have a safe landing!
![Page 64: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/64.jpg)
Links
● Google PageSpeed Insightshttps://developers.google.com/speed/pagespeed/insights
● Transloadit: Image / Video uploads / conversionhttps://transloadit.com/
● Pingdom Monitoring & Toolshttp://tools.pingdom.com/fpt/
● New Relic application & server monitoringhttp://newrelic.com/
● CloudFlare CDNhttps://www.cloudflare.com/
![Page 65: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/65.jpg)
Links
● Continuous Performance Testinghttp://qafoo.
com/talks/12_05_ipc_se_continuous_performance_tests.pdf
● Varnishhttps://www.varnish-cache.org/
● Varnish Speedhttp://kly.
no/posts/2010_10_23__High_End_Varnish___275_thousand_request
s_per_second___.html
![Page 66: Brace for impactFlight Plan 1. MAKE A PLAN 2. MAKE IT SCALE? 3. MAKE IT FAST! 4. [ TEST, SIZE ] 5. WATCH IT! 6. BONUS: EXAMPLES} Architecture](https://reader034.vdocument.in/reader034/viewer/2022050305/5f6d5e929cf9140e9f535d87/html5/thumbnails/66.jpg)
Links
● NGINXhttp://www.slideshare.net/Edorian/nginx-php-fpm-the-
webserver-you-might-actually-like-php-usergroup-berlin
● High Performance Web Sites - Steve Soudershttp://shop.oreilly.com/product/9780596529307.do
● Pound Load Balancer, Reverse Proxy & SSL Offloaderhttp://www.apsis.ch/pound