|

WordCamp GR 2017 – WP-API: The Good, the Bad, and the Ugly – J Andrew Scott

J Andrew Scott – http://rubberchickenfarm.com/

History of APIs

  • RSS
    • Advantages
      • Fast & reliable
      • Easy to consume
      • Almost no technical footprint
    • Disadvantages
      • Read-only
      • Static content
      • No authentication
      • No user-driven content (i.e. comments, favorites, etc)
  • DIY API
    • Advantages
      • Dynamic content
      • User-driven content
      • App & user authentication
      • Roles & permissions based
      • Connected applications
    • Disadvantages
      • DIY OAuth
      • Redundant URI scheme
      • Mediocre performance
      • Large technical footprint
  • WP-API
    • Advantages
      • Succinct URI scheme
      • Improved performance
      • Small technical footprint
      • Available in WordPress core
    • Disadvantages
      • Granular transactions
      • No batch uploads
      • Increased number of API calls
      • What once required 2 web servers now required 12-15 servers

WP-API Disadvantage Factors & Solutions

  • Number of content types
    • Solution: consolidate endpoints
  • Volume of individual API calls
    • Solution: batch processing endpoints
  • Frequency of individual API calls
    • Solution: page-level caching

Lessons Learned

  • Use standard authentication methods
  • Use page-level caching on GET requests
    • Varnish
    • WordPress object caching
  • Use custom endpoints
    • for upload of large batches of content
    • for consolidating repetitive API calls

Similar Posts

  • /

    Enterprise API Development…Navigating The Battlefield

    Right now at work I’m the lead on a project to establish a new vendor API. Unfortunately there were decisions made on key specifications of how the API was to be developed before it was handed to me. Where I work there is a lot of legacy standards and so it’s challenging to introduce new technologies as a standard. I do see that there is a constant struggle between what APIs are needed internally versus externally, for B2B integrations. I’m always looking to try to balance this out whenever I can.
  • /

    WordPress Grand Rapids – September 2018: Show And Tell

    Nicole – BoldGrid Post & Page Builder Free & Premium Versions Not Compatible With Editing on Mobile Not Yet Compatible With Gutenberg Premium Designer Blocks & Sliders BoldGrid Central Free cloud-based WordPress instances for testing things out. Crio WordPress Theme Available on ThemeForest Topher – BigCommerce Provides a plugin that pushes your BigCommerce store content to WordPress. All-one SaaS platform. Uses an iframe for checkout so all transactions are at BigCommerce for PCI compliance Can connect BigCommerce to Amazon as a channel. WordPress is just like a channel in BigCommerce and you can push specific products or product categories to different WordPress sites. Request WordPress Beta Access and get free Dev BigCommerce access for life. General Tips Plugins Imsanity
  • / / / /

    Looking Back on 2017, the Year of Firsts

    I don’t recall if I’ve ever written any sort of year-in-review blog post or even social media post, but this year I have had so many firsts that I wanted to reflect on and share my thanks for. Health In the health department I not only reached my initial target goal weight but actually surpassed it, and my second target. I think this year I’ve weighed the least that I have in 26 years. I have always struggled with my weight and living a more healthy lifestyle. I attribute my success primarily to my wife, and also to the encouragement of many friends and family. I also had to have a lot of self-determination as well, but that was only had by seeing the impact my…
  • / /

    WordPress DevOps – WordCamp Grand Rapids 2018

    1. Introductions Development History High School 1996 – Personal School Website – image maps with cgi-bin processing written in C 1996 – Davisco Foods International (First Freelance Job) – static HTML site College 2000 – Inspiration Point Christian Camp & Retreat Center – perl for form processing, PHP template-based site Post-College 2002 – Cross Roads Range Christian Camp – PHP CMS 2004-2006 – Church of the Lutheran Brethren of America & related ministries – PHP CMS, PHP Authorize.NET Donation Processing, osCommerce 2006 – iPCS Wireless, Inc. (telecommunications) – PHP & Perl 2011 – Ericsson/Sprint (telecommunications) – PHP/.NET/C#/Java 2012 – Allen Extruders/SPI (manufacturing) – PHP/Ruby/C#/.NET 2016 – Sprint (telecommunications) – Java/C#/.NET WordPress History Personal 2006 – Personal Blog 2006 – Faith Shaping Podcast 2008 – The Stamp Box,…
  • WordCamp GR 2017 – Elementary, My Dear Coder – Nicole Paschen Caylor

    Nicole Paschen Caylor – https://github.com/nicolepaschen Code.org The Hour of Code Kodable – paid program, self-guided game Tynker – tynker.com Code Spark Academy Computer Science Curriculum Uses drag-n-drop code blocks Points out more efficient ways of accomplishing task ScratchJr – found on PBS Kids as well(provides more familiar characters) Scratch – for older kids Tips for Success Site with your child Explain things to your child as you go along Resources: Lego Mindstorms Hello World – book on Python programming CS Unplugged – free, downloadable, offline, ages 9+ Grand Valley State University, Pew Campus, Grand Rapids, MI

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)