33
Scaling for High Traffic Sites

WordPress at Scale Webinar

Embed Size (px)

Citation preview

Page 1: WordPress at Scale Webinar

Scaling for High Traffic Sites

Page 2: WordPress at Scale Webinar

Who are we?

Drew GortonDirector of Agency and Community Outreach, Pantheon

Jonathan WoldAccounts Director, XWP

Weston RuterTechnology Director, XWP

Page 3: WordPress at Scale Webinar

Why Scale Matters

Page 4: WordPress at Scale Webinar

Today’s Topics

● Page Caching

● Object Caching

● Query Performance

● Algorithm Performance

● Searching for Scale

● Elastic Architecture

● Development and Workflow

● A Real-World Scalable Architecture

Page 5: WordPress at Scale Webinar

Page Caching

Page 6: WordPress at Scale Webinar

Page Caching

Page 7: WordPress at Scale Webinar

Page CachingChallenges & Takeaways

● Cache TTL and Expiration● Fragment caching● Cookies

Page 8: WordPress at Scale Webinar

Today’s Topics

● Page Caching

● Object Caching

● Query Performance

● Algorithm Performance

● Searching for Scale

● Elastic Architecture

● Development and Workflow

● A Real-World Scalable Architecture

Page 9: WordPress at Scale Webinar

Object Caching

An object cache speeds up PHP execution time while lessening the load on the database.

Page 10: WordPress at Scale Webinar

Object CacheChallenges & Takeaways

● Complexity● Invalidation● Optimization● Eviction

Page 11: WordPress at Scale Webinar

Today’s Topics

● Page Caching

● Object Caching

● Query Performance

● Algorithm Performance

● Searching for Scale

● Elastic Architecture

● Development and Workflow

● A Real-World Scalable Architecture

Page 12: WordPress at Scale Webinar

Query Performance

Page 13: WordPress at Scale Webinar

Query PerformanceChallenges & Takeaways

● Query routing● Replication lag● Debuggability● Regressions

Page 14: WordPress at Scale Webinar

Today’s Topics

● Page Caching

● Object Caching

● Query Performance

● Algorithm Performance

● Searching for Scale

● Elastic Architecture

● Development and Workflow

● A Real-World Scalable Architecture

Page 15: WordPress at Scale Webinar

Algorithm Performance

Page 16: WordPress at Scale Webinar

Today’s Topics

● Page Caching

● Object Caching

● Query Performance

● Algorithm Performance

● Searching for Scale

● Elastic Architecture

● Development and Workflow

● A Real-World Scalable Architecture

Page 17: WordPress at Scale Webinar

Searching for Scale

Use a dedicated search index like Apache Solr or ElasticSearch

Page 18: WordPress at Scale Webinar

Searching for Scale

Challenge & Takeaways

● Overriding WP_Query()● Index Rebuilds● Complexity

Page 19: WordPress at Scale Webinar

Today’s Topics

● Page Caching

● Object Caching

● Query Performance

● Algorithm Performance

● Searching for Scale

● Elastic Architecture

● Development and Workflow

● A Real-World Scalable Architecture

Page 20: WordPress at Scale Webinar

Elastic ArchitectureHorizontal Scalability Is the Scalability That Matters

Page 21: WordPress at Scale Webinar

Traditional OptionsShared vs VM vs Cluster

Page 22: WordPress at Scale Webinar

Traditional Options at ScaleIn Real Life

Page 23: WordPress at Scale Webinar

Next Generation ArchitectureThe Same Design, Just Add More

Page 24: WordPress at Scale Webinar

Elastic Architecture

Challenges and Takeaways

● Load balancing● Shared media● Consistency

Page 25: WordPress at Scale Webinar

Today’s Topics

● Page Caching

● Object Caching

● Query Performance

● Algorithm Performance

● Searching for Scale

● Elastic Architecture

● Development and Workflow

● A Real-World Scalable Architecture

Page 26: WordPress at Scale Webinar

Development & Workflow

Page 27: WordPress at Scale Webinar

Development & Workflow

Page 28: WordPress at Scale Webinar

Development Workflow

Challenges & Takeaways

● Environmental consistency● Site configuration● Local development● Automation

Page 29: WordPress at Scale Webinar

Today’s Topics

● Page Caching

● Object Caching

● Query Performance

● Algorithm Performance

● Searching for Scale

● Elastic Architecture

● Development and Workflow

● A Real-World Scalable Architecture

Page 30: WordPress at Scale Webinar

A modern stack:

● Reverse proxy (e.g. Varnish)● Apache or Nginx● PHP● Memcached or Redis● MySQL and Database

Replication● ElasticSearch or Solr● Linux● Version control (Git)● CI server

Page 31: WordPress at Scale Webinar

If you don’t want to do it all on your own...

Page 32: WordPress at Scale Webinar

Learn more on scalewp.io

Page 33: WordPress at Scale Webinar

Questions?

@dgorton@westonruter@sirjonathan