20
How to massively scale WordPress Mark Brown Senior Product Manager Microsoft Corporation [email protected] @markjbrown Speed = Dollars Frederick Townes CTO Mashable.com [email protected] @w3edge

How to Massively Scale WordPress

Embed Size (px)

DESCRIPTION

Session from Web 2.0 Expo in San Francisco on March 30, 2011.

Citation preview

Page 1: How to Massively Scale WordPress

How to massively scale WordPress

Mark Brown Senior Product Manager Microsoft Corporation [email protected] @markjbrown

Speed = Dollars

Frederick Townes CTO Mashable.com [email protected] @w3edge

Page 2: How to Massively Scale WordPress

Why Performance Matters

Google: +500 ms -> -20% traffic loss

Yahoo: +400 ms -> -5-9% full-page traffic loss (visitor left before the page finished loading)

Amazon: +100 ms (speed decrease) -> -1% sales loss

Page 3: How to Massively Scale WordPress

What should I do?

Web performance starts with the app

Within the app are several types of caching opportunities

Don’t forget about the browser cache

Page 4: How to Massively Scale WordPress

PHP & WINDOWS + IIS

+

Page 5: How to Massively Scale WordPress

IIS 7.X

Default min install

Modular architecture

Streamlined processing pipeline

File-based config

Authorization

Resolve Cache

Execute Handler

Update Cache

Authentication

Send Response

Page 6: How to Massively Scale WordPress

FAST-CGI

Handles requests from app pool

Automatic Performance tuning

• Memory Usage

• CPU Load

• Context Switches

Page 7: How to Massively Scale WordPress

WINCACHE

Boost speed with no code changes

Bytecode Cache

File Cache

Path Cache

Session Cache

User Data Cache

WinCache Statistics

Page 8: How to Massively Scale WordPress

URL REWRITE

Pretty Permalinks for WordPress

Rewrite:

Request headers and Server variables

HTTP Response

Outbound URL’s

Inside specific html tags in response

Import Apache mod_rewrite

http://mycompany.com/?cat_id=3&prod_id=2346 http://mycompany.com/products/widget

Page 9: How to Massively Scale WordPress

PHP 5.3

Updated code base

Native Win32 instead of POSIX

Latest compiler VC9

Use Non-Thread-Safe builds for better performance.

Page 10: How to Massively Scale WordPress

PHP Manager

Register 2x PHP versions with IIS

Easy checking of phpinfo()

Configure PHP error reporting

Manage directives & extensions

Page 11: How to Massively Scale WordPress

WORDPRESS + W3 TOTAL CACHE

+

Page 12: How to Massively Scale WordPress

W3 Total Cache

Optimize Speed and UX for WordPress

Page

Browser

Database

Object

Minify

CDN

Page 13: How to Massively Scale WordPress

W3 Benefits

> 10x performance

“Instant” second page views

Reduced page load time

Optimized progressive render

Improved web server performance

Up to 80% Bandwidth savings

Page 14: How to Massively Scale WordPress

The “Tons of Logos” Slide

W3 Cache is AWESOME

Page 15: How to Massively Scale WordPress

DEMO

Page 16: How to Massively Scale WordPress

WEBMATRIX

New to WordPress or would like to use Windows?

Fastest Way to create a new WordPress site on Windows

FREE!!!

Page 17: How to Massively Scale WordPress

WEBMATRIX

• Customize

– Light-weight editor

• HTML, CSS, PHP, JS

– Database editor

– Monitor HTTP Requests

– Tune and optimize for Search Engines

Page 18: How to Massively Scale WordPress

WEBMATRIX

Publish

FTP or sFTP

Web Deploy

One Click deploy

Includes Database

Web Hosting Gallery

Great deals on hosting

Know how to do WordPress on Windows

Page 20: How to Massively Scale WordPress

QUESTIONS?