|

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

  • /

    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
  • /

    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 Meetup – February 2019

    Show & Tell Grammarly – Proofreading Google Docs – for writing Zoho – online productivity suite Invoicely – Small business client management & automation Plutio – Project management WordPress.org Favorites – When installing new plugins you can use favorites and use any WordPress.org username. WordPress Plugins TablePress Advanced Custom Fields Block Lab WordPress Themes Hestia WordPress Theme Development Foundation 6 JointsWP FoundationPress WordPress Management WP All Import DVS, Grand Rapids, MI
  • /

    WordCamp GR 2017 – Computers <3 Structured Data – Steve Grunwell

    Steve Grunwell – https://stevegrunwell.com/ https://github.com/stevegrunwell/structured-data/blob/master/README.md What is Structured Data? Standards to help computers to understand our content. Content is for humans. Structured data is for machines. Structured Data Structured data is all about providing context itemtype/itemprop/content HTML/XML HyperText and eXtensible Markup Language Meant to convey information in a meaningful way Generic layout RSS An extension of XML for content sydication Introduced structure: post titles, content, dates Standardized and can be validated Microformats & Dublin Core Competing standards for rich data Dublin Core is a specific set of standards, but designed to be limited in scope Uses meta tags Microformats – uses class names Resource Description Framework (RDF) A specification for modeling metadata New attributes Opengraph Facebook’s social graph Used to create rich media when sharing content…
  • A Little Bit Of #WCGR With Me Camping

    As I headed off camping with the family this weekend I was choosing what to bring to keep my phone charged. When you are a tent camping family you only have so much room. The charging pack I received for speaking at last year’s #WordCamp Grand Rapids, and the USB conversation dongle from this year made a great compact charging setup.

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.)