DevOps.com

Where the world meets DevOps

  • Latest
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
    • IT as Code
  • DevOps Chats
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Virtual Summits
    • Conferences
  • Sponsored Communities
    • CloudBees
    • IT as Code
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Media Kit
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
MENUMENU
  • AI
    • OpsRamp Adds Synthetic Monitoring to AIOps Platform

      OpsRamp Adds Synthetic Monitoring to AIOps Platform

      Micro Focus AI

      Micro Focus Extends AI Testing Tools Reach

      Blue Medora

      VMware’s Blue Medora Buy Advances AIOps

      Eggplant testing

      Eggplant Injects AI Into Application Testing

      Eggplant testing

      Appian Infuses Low-Code Platform With AI

  • Cloud
    • cloud predictions

      Revisiting 2020 Cloud Predictions in Light of COVID-19

      cloud COVID-19

      Cloud Is Red Hot in the COVID-19 Era

      AWS machine learning

      AWS Brings Machine Learning to Code Optimization

      Oracle on-premises

      Cloud Foundry Foundation Updates CLI to Extend DevOps Processes

      ServiceNow Sweagle

      ServiceNow Acquires Sweagle to Advance DevOps Agenda

  • Continuous Delivery
    • microservices

      How to Use Microservices To Evolve DevOps Pipelines

      JFrog platform

      JFrog Extends Reach and Scope of CI/CD Platform

      CD Foundation

      CD Foundation Touts Spinnaker CD Progress

      Atlassian DevOps

      Atlassian Unfurls Bevy of DevOps Updates

      CircleCI

      CircleCI Extends Core CI/CD Platform

  • Continuous Testing
    • Shift-Right Testing - TestOps

      Shift-Right Testing: The Emergence of TestOps

      What Developers Should Take Away from the Iowa Caucus App Debacle

      What Developers Should Take Away from the Iowa Caucus App Debacle

      survey testing

      Survey Sees Little Progress in Drive to Shift Testing Left

      DevOps Software Testing

      DevOps Places Software Testing in the Crosshairs

      testing

      DevOps Chats: Enterprise Continuous Testing With a Shift-Right Mindset

  • DevSecOps
    • DevSecOps

      How to Make DevSecOps a Reality

      RunSafe

      RunSafe Allies With JFrog to Secure Applications

      distributed tracing

      Traceable Secures Apps Using Distributed Tracing

      vulnerability

      How to Source Vulnerability Data for True DevSecOps

      IaC

      How IaC Bridges the Divide Between DevOps, Security

  • Leadership Suite
    • transformation

      Jump Over the Hidden Barriers to Digital Transformation

      teams scale

      Designing Engineering Teams for Scale

      DevOps

      Has the Pandemic Made DevOps Tougher or Easier?

      project management

      Product vs. Project: Balancing Management Roles for Success

      data people

      Data and Tools Don’t Solve Problems, People Do

  • Practices
    • GraphQL

      Apollo GraphQL Brings Caching to Client Software

      GitLab OverOps

      OverOps Partners With GitLab to Analyze Code Earlier

      DevOps developer

      DevOps Was Supposed to Kill Developer Jobs. Here’s Why it Didn’t

      DevOps

      Solving the DevOps Dilemma in the COVID Era 

      DevOps

      Has the Pandemic Made DevOps Tougher or Easier?

  • ROELBOB
    • a-benefit-of-incompetence

      A Benefit of Incompetence

      stars-n-status

      Stars and Status

      email-marketing

      Email Marketing Recipients in the Real World

      abundance-and-scarcity

      Abundance and Scarcity

      defining-value

      Defining Value

  • Toolbox
    • DevOps

      Solving the DevOps Dilemma in the COVID Era 

      Puppet Relay

      Puppet Launches Relay to Simplify Automating DevOps Workflows

      Pinpoint

      Pinpoint Dives Deeper into Software Delivery Analytics

      Checkmarx, survey, DevOps, AppSec

      Participate in the Checkmarx 2020 Survey

      debugging

      Rookout Extends Reach of Debugging Platform to On-Prem

  • IT as Code
  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » Apollo GraphQL Brings Caching to Client Software

GraphQL

Apollo GraphQL Brings Caching to Client Software

Mike VizardBy Mike Vizard on July 17, 2020 2 Comments

Apollo GraphQL this week updated its namesake GraphQL client software that among other things improves performance using in-memory caching application programming interfaces (APIs).

Recent Posts By Mike Vizard
  • OverOps Partners With GitLab to Analyze Code Earlier
  • Barracuda Networks Partners With Microsoft on SD-WAN Service
  • RunSafe Allies With JFrog to Secure Applications
Mike Vizard More from Mike Vizard
Related Posts
  • Apollo GraphQL Brings Caching to Client Software
  • Hasura Launches Beta of GraphQL-Based Remote Joins Tool
  • Hasura Launches Hasura Cloud, the First GraphQL Service That Connects to Multi-Cloud Data Sources to Accelerate Development of Modern Applications
    Related Categories
  • Blogs
  • DevOps Practice
    Related Topics
  • code
  • data cache
  • data query
  • in-memory computing
Show more
Show less

GraphQL has emerged as a popular alternative to REST APIs because it provides developers with a query engine that provides more control over what data is requested. Similar in concept to SQL, developers GraphQL also makes it possible for developers to describe the data they are exposing via an API.

Finally, GraphQL APIs are organized in terms of types and fields rather than endpoints. That allows developers to organize APIs within a graph that makes them available via a single request rather than requiring every communication between APIs to occur on a point-to-point basis.

Apollo GraphQL has created client software that allows developers to employ GraphQL to both query external data in addition to making use of a graph to catalog the services made available within the front end of an application.

Version 3.0 of Apollo GraphQL client software addresses a caching limitation that stems from the fact generic HTTP caching doesn’t work with GraphQL. Every time an HTTP request is made for slightly different data the cached value is invalidated. When the Apollo GraphQL client fetches data from your server it caches that data using a normalized structure that matches the Apollo GraphQL schema, which allows it to locally reconstruct a subset of the back-end data graph. The next time Apollo Client queries any of that same data it can fetch it directly from the cache.

Developers can now also define a field policy for any GraphQL field that appears in your cache. A field policy can include a read function that customizes what occurs when the field is read from the cache and a merge function that customizes what occurs when it’s written.

Apollo Graph CTO Matt DeBergalis said by defining all of this custom field logic in one place developers can avoid repeating code. Other developers can also interact with the types and fields without needing to understand how they’re stored or fetched, he said.

Version 3.0 of the Apollo client library also now includes support for a reactive variable value that registers a dependency when read.

Originally developed by Facebook, GraphQL is gaining a lot of traction on backend systems because it allows developers to describe the data that can be accessed. However, because it also makes it more efficient to query data it’s also now being more widely deployed on clients as well. It’s not clear to what degree REST APIs might be replaced by GraphQL, but at the very least reliance on REST APIs in new application development projects is likely to decline significantly.

The implications of that transition for DevOps teams are significant because the overall performance of applications that rely on GraphQL versus REST APIs should substantially improve. In fact, the biggest inhibitor to GraphQL adoption at this juncture may be simple inertia. Too many developers simply build REST APIs as a matter of reflex without necessarily investigating alternatives. However, it should not be too long before everyone on the DevOps teams starts to appreciate just how much the end user experience really is when GraphQL is employed.