Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
@rahul286 #wcmumbai
Scaling WooCommerce
- Blogger
- First rtCamper
- Obsessed with speed
About me
1. Blogger
2. rtCamper
3. Husband
4. Father
5. Sandwich-wala
Sandwich-wala
State of the Word
State of the WordPress
Caching
Typical Architecture!
Typical Architecture!
Handle (almost) entire load at
NGINX Level
WooCommerce @ NGINX level
- Output depends on customers
- Same URL, different output
- /cart/
- /checkout/
- /my-account/
...
At each tier
Scaling WooCommerce
NGINX
- If your theme has user-specific elements in
header/footer/sidebar, ajaxify them
- If you cannot ajaxify, use “Window Sho...
NOT trademarked!
Window Shopping
Technique
¯_(ツ)_/¯
1. Start with entire site cached
2. Monitor woocommerce cookie for cart items
3. As soon as a visitor adds something to ca...
- Faster site for folks who are “Just Looking”
- Can handle more traffic, specially spikes!
But... What about folks who ar...
PHP
Easy Part
1. WordPress Object Cache FTW!
a. https://wordpress.org/plugins/redis-cache/
b. Object cache also speed-up Trans...
Tough Part
1. Architecture
a. AJAX
b. AngularJS/React
2. Code Quality
a. Fast and readable (in order)
b. Debug - Like A He...
MySQL
1. SSD. Always. Period. One more Period.
2. RAM > mysql database size
3. CPU cores (enough of them)
Hardware
Software
1. Slow Query (ee debug --mysql)
2. ElasticSearch - elasticpress-woocommerce
3. WordPress Object Cache Again
4. M...
10071
WooCommerce 3.0
https://github.
com/woothemes/woocommerce/issues/10071
Get Involved!
Sorry no demo this time :|
Thank You!
@rahul286 #wcmumbai
Q & A
Scaling WooCommerce - WordCamp Mumbai 2016
Scaling WooCommerce - WordCamp Mumbai 2016
Scaling WooCommerce - WordCamp Mumbai 2016
Scaling WooCommerce - WordCamp Mumbai 2016
Upcoming SlideShare
Loading in …5
×

Scaling WooCommerce - WordCamp Mumbai 2016

8,718 views

Published on

Scaling WooCommerce for high transaction volume. Hardware, software and overview of special "Window Shopping Technique".

Published in: Technology
  • Sex in your area is here: ❶❶❶ http://bit.ly/2ZDZFYj ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating direct: ❶❶❶ http://bit.ly/2ZDZFYj ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Scaling WooCommerce - WordCamp Mumbai 2016

  1. 1. @rahul286 #wcmumbai Scaling WooCommerce
  2. 2. - Blogger - First rtCamper - Obsessed with speed About me
  3. 3. 1. Blogger 2. rtCamper 3. Husband 4. Father 5. Sandwich-wala Sandwich-wala
  4. 4. State of the Word
  5. 5. State of the WordPress Caching
  6. 6. Typical Architecture!
  7. 7. Typical Architecture! Handle (almost) entire load at NGINX Level
  8. 8. WooCommerce @ NGINX level - Output depends on customers - Same URL, different output - /cart/ - /checkout/ - /my-account/ - /* (user specific element in header,
  9. 9. At each tier Scaling WooCommerce
  10. 10. NGINX
  11. 11. - If your theme has user-specific elements in header/footer/sidebar, ajaxify them - If you cannot ajaxify, use “Window Shopping Technique” NGINX - Cache Product Pages
  12. 12. NOT trademarked! Window Shopping Technique
  13. 13. ¯_(ツ)_/¯
  14. 14. 1. Start with entire site cached 2. Monitor woocommerce cookie for cart items 3. As soon as a visitor adds something to cart, start bypassing cache for them only. http://rt.cx/wcwst Window Shopping Technique
  15. 15. - Faster site for folks who are “Just Looking” - Can handle more traffic, specially spikes! But... What about folks who are actually buying? NGINX Tier Summary
  16. 16. PHP
  17. 17. Easy Part 1. WordPress Object Cache FTW! a. https://wordpress.org/plugins/redis-cache/ b. Object cache also speed-up Transients API c. ee site create/update example.com --wpredis 2. PHP7 a. ee site create/update example.com --php7
  18. 18. Tough Part 1. Architecture a. AJAX b. AngularJS/React 2. Code Quality a. Fast and readable (in order) b. Debug - Like A Hero
  19. 19. MySQL
  20. 20. 1. SSD. Always. Period. One more Period. 2. RAM > mysql database size 3. CPU cores (enough of them) Hardware
  21. 21. Software 1. Slow Query (ee debug --mysql) 2. ElasticSearch - elasticpress-woocommerce 3. WordPress Object Cache Again 4. MySQLTuner
  22. 22. 10071
  23. 23. WooCommerce 3.0 https://github. com/woothemes/woocommerce/issues/10071 Get Involved!
  24. 24. Sorry no demo this time :| Thank You!
  25. 25. @rahul286 #wcmumbai Q & A

×