Upload
pantheon
View
1.183
Download
0
Embed Size (px)
Citation preview
Scaling for High Traffic Sites
Who are we?
Drew GortonDirector of Agency and Community Outreach, Pantheon
Jonathan WoldAccounts Director, XWP
Weston RuterTechnology Director, XWP
Why Scale Matters
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 Caching
Page Caching
Page CachingChallenges & Takeaways
● Cache TTL and Expiration● Fragment caching● Cookies
Today’s Topics
● Page Caching
● Object Caching
● Query Performance
● Algorithm Performance
● Searching for Scale
● Elastic Architecture
● Development and Workflow
● A Real-World Scalable Architecture
Object Caching
An object cache speeds up PHP execution time while lessening the load on the database.
Object CacheChallenges & Takeaways
● Complexity● Invalidation● Optimization● Eviction
Today’s Topics
● Page Caching
● Object Caching
● Query Performance
● Algorithm Performance
● Searching for Scale
● Elastic Architecture
● Development and Workflow
● A Real-World Scalable Architecture
Query Performance
Query PerformanceChallenges & Takeaways
● Query routing● Replication lag● Debuggability● Regressions
Today’s Topics
● Page Caching
● Object Caching
● Query Performance
● Algorithm Performance
● Searching for Scale
● Elastic Architecture
● Development and Workflow
● A Real-World Scalable Architecture
Algorithm Performance
Today’s Topics
● Page Caching
● Object Caching
● Query Performance
● Algorithm Performance
● Searching for Scale
● Elastic Architecture
● Development and Workflow
● A Real-World Scalable Architecture
Searching for Scale
Use a dedicated search index like Apache Solr or ElasticSearch
Searching for Scale
Challenge & Takeaways
● Overriding WP_Query()● Index Rebuilds● Complexity
Today’s Topics
● Page Caching
● Object Caching
● Query Performance
● Algorithm Performance
● Searching for Scale
● Elastic Architecture
● Development and Workflow
● A Real-World Scalable Architecture
Elastic ArchitectureHorizontal Scalability Is the Scalability That Matters
Traditional OptionsShared vs VM vs Cluster
Traditional Options at ScaleIn Real Life
Next Generation ArchitectureThe Same Design, Just Add More
Elastic Architecture
Challenges and Takeaways
● Load balancing● Shared media● Consistency
Today’s Topics
● Page Caching
● Object Caching
● Query Performance
● Algorithm Performance
● Searching for Scale
● Elastic Architecture
● Development and Workflow
● A Real-World Scalable Architecture
Development & Workflow
Development & Workflow
Development Workflow
Challenges & Takeaways
● Environmental consistency● Site configuration● Local development● Automation
Today’s Topics
● Page Caching
● Object Caching
● Query Performance
● Algorithm Performance
● Searching for Scale
● Elastic Architecture
● Development and Workflow
● A Real-World Scalable Architecture
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
If you don’t want to do it all on your own...
Learn more on scalewp.io
Questions?
@dgorton@westonruter@sirjonathan