Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WordCamp Singapore: Offloading Calculations from WordPress onto Outer Services, such as AWS and Google.

WordCamp Singapore: Offloading Calculations from WordPress onto Outer Services, such as AWS and Google.

Let's not let WordPress do what it's not made for :D

Shinichi Nishikawa

September 06, 2016
Tweet

More Decks by Shinichi Nishikawa

Other Decks in Technology

Transcript

  1. Offloading Calculations from WordPress
    onto Outer Services, such as AWS and
    Google.

    View Slide

  2. Shinichi Nishikawa
    Who am I ?

    View Slide

  3. View Slide

  4. View Slide

  5. View Slide

  6. View Slide

  7. View Slide

  8. View Slide

  9. High traffic websites,
    Spiky access,
    and WordPress.

    View Slide

  10. Transient
    Frontend optimization
    WordPress optimization
    Object caching
    CDN
    Server configurations
    Querying things right
    Image optimization

    View Slide

  11. Things to offload.
    • Searching
    • Sorting
    • Showing related posts or products
    • Recommending based on users’ preference
    • Logging lots of data such as access log,
    security log
    • Backing up itself

    View Slide

  12. Plugins which works by themselves
    WordPress Core
    Plugin Plugin Plugin Plugin
    One big process.

    View Slide

  13. Offloading model
    WordPress Core
    Connector plugin Connector plugin Connector plugin Connector plugin
    WordPress doesn’t work too much.
    API API API API
    Micro Service Micro Service Micro Service Micro Service

    View Slide

  14. View Slide

  15. Offload
    Ranking, popular posts

    View Slide

  16. Rankings, popular posts
    • top 3 most viewed posts
    • within 7 days
    • in a category “Javascript”
    • under /en/ path

    View Slide

  17. Simple GA Ranking
    author: @horike

    View Slide

  18. more on http://simple-ga-ranking.org/.

    View Slide

  19. Offload
    Search, related posts

    View Slide

  20. Related posts and/or products
    • Want to look up the full text of an article and
    look for a really related posts.
    • Needs to look up the taxonomy terms and post
    meta.
    • Don’t need to have the perfectly matched words.
    • Rate the posts with frequency rate of the related
    words appearance.
    • Search products by price range ($5~$10)

    View Slide

  21. ElasticPress
    authors: 10up

    View Slide

  22. Elasticommerce Related Items
    authors: @horike, @hideokamoto and more

    View Slide

  23. Elasticommerce Search Form
    authors: @horike, @hideokamoto and more

    View Slide

  24. WP Simple Elasticsearch
    authors: @horike, @hideokamoto and more

    View Slide

  25. http://ecdemo.amimoto-ami.com/product-category/sample?orderby=menu_order

    View Slide

  26. Offload caching

    View Slide

  27. Cache on CDN

    View Slide

  28. C3 Cloudfront Cache Controller
    authors: @hideokamoto, and others

    View Slide

  29. Backups, storage, and more.

    View Slide

  30. View Slide

  31. WordPress centric model
    WordPress Core
    Connector plugin Connector plugin Connector plugin Connector plugin
    WordPress doesn’t work too much.
    API API API API
    Micro Service Micro Service Micro Service Micro Service

    View Slide

  32. Microservices
    • system of multiple components
    • Components works independently, too
    • loosely coupled through RESTful API

    View Slide

  33. Distributed services model

    View Slide

  34. Thank you.

    View Slide