Slide 1

Slide 1 text

Back to Front Performance. Breaking Borders 15 Oct 2013 @drewm

Slide 2

Slide 2 text

Back to Front Performance. Breaking Borders 15 Oct 2013 @drewm

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

Performance is a feature.

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

The Steve Souders Problem.

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

256MB 10MB <25

Slide 12

Slide 12 text

Performance under load depends on the time taken to process each request.

Slide 13

Slide 13 text

The Back End.

Slide 14

Slide 14 text

Hosting.

Slide 15

Slide 15 text

Cheap hosting is expensive.

Slide 16

Slide 16 text

Shared hosting is the worst.

Slide 17

Slide 17 text

Consider what your project cost to build when buying hosting.

Slide 18

Slide 18 text

Use the best hosting you can afford, not the cheapest you can get away with.

Slide 19

Slide 19 text

Hot Girls Love Hosting!

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

SELECT c.catTitle, COUNT(c2p.catID) as qty FROM tblBlogCategories c, tblBlogPost_Categories c2p WHERE c.catID=c2p.catID GROUP BY c.catID ORDER BY qty DESC

Slide 25

Slide 25 text

Be smart.

Slide 26

Slide 26 text

How real-time is this data?

Slide 27

Slide 27 text

Do the work once.

Slide 28

Slide 28 text

Premature optimization is the root of all evil.

Slide 29

Slide 29 text

There is no doubt that the grail of efficiency leads to abuse. Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.

Slide 30

Slide 30 text

Yet we should not pass up our opportunities in that critical 3%. A good programmer will not be lulled into complacency by such reasoning, he will be wise to look carefully at the critical code; but only after that code has been identified.

Slide 31

Slide 31 text

The fear of premature optimization is the root of all evil.

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

Let’s make programming fun!

Slide 34

Slide 34 text

Insanity is doing the same thing over and over again and expecting different results.

Slide 35

Slide 35 text

The Network.

Slide 36

Slide 36 text

www.varnish-cache.org

Slide 37

Slide 37 text

Divide resources across domain names.

Slide 38

Slide 38 text

s1.example.com s1.example.com s2.example.com s2.example.com s3.example.com s3.example.com s4.example.com s4.example.com

Slide 39

Slide 39 text

example.com s*.example.com Apache nginx application static assets

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

ExpiresActive on ExpiresByType image/jpg "access plus 7 days" ExpiresByType image/gif "access plus 7 days" ExpiresByType image/jpeg "access plus 7 days" ExpiresByType image/png "access plus 7 days" ExpiresByType text/css "access plus 7 days" ExpiresByType application/javascript "access plus 7 days" ExpiresDefault "access plus 10 years"

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript www.whatsmyip.org/http-compression-test/

Slide 46

Slide 46 text

mod_pagespeed

Slide 47

Slide 47 text

The Front End.

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

github/ded/script.js/ stevesouders.com/controljs/ developers.google.com/loader/

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

* * decknetwork.net 24ways.org/201106

Slide 55

Slide 55 text

Steve Souders + Books stevesouders.com Yahoo! Exceptional Performance developer.yahoo.com/performance/

Slide 56

Slide 56 text

The Message.

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

Slide 59

Slide 59 text

The End. Drew McLellan allinthehead.com / @drewm Thanks, borderbreakers!