The Backend Engineering Show with Hussein Nasser

Episode 107 - GraphQL Pros and Cons, examples and when to use over REST


Listen Later

GraphQL Pros and Cons, examples and when to use over REST

GraphQL is an open source query language developed by facebook that allows clients to formulate queries to get different results. Its main goal is to combine multiple services into one endpoint. In this video we will discuss what is GraphQL, why facebook developed it, go through some examples using github GraphQL API, finally we will discuss the pros and cons and when you should use this technology.

  • What is GraphQL?
  • Examples
  • Pros and Cons
  • when to use REST vs GRAPHQL
  • What is GraphQL

    • Schema
    • Query language
    • Nesting
    • Mutation and subscription
    • Examples

      Schema intro

      Github API

      Rest api

      Pros

      • Flexibility
      • efficient response : payload back only get what you want of fields since you know the schema
      • No round trips- Avoiding multiple round trips (HATEOS REST)
      • Uniform single interface API endpoint
      • Self documenting
      • Cons

        • Complexity
        • Typed system - ( use it to know if a type is available or not and fork logic) slows down adoption.. same as soap
        • No Caching etag since always POST
        • Error management non-standard for HTTP.
        • Over engineering can lead to Inefficiency of the joins can lead to performance and DOS
        • ...more
          View all episodesView all episodes
          Download on the App Store

          The Backend Engineering Show with Hussein NasserBy Hussein Nasser

          • 4.9
          • 4.9
          • 4.9
          • 4.9
          • 4.9

          4.9

          40 ratings


          More shows like The Backend Engineering Show with Hussein Nasser

          View all
          Freakonomics Radio by Freakonomics Radio + Stitcher

          Freakonomics Radio

          32,267 Listeners

          Software Engineering Radio - the podcast for professional software developers by team@se-radio.net (SE-Radio Team)

          Software Engineering Radio - the podcast for professional software developers

          273 Listeners

          Risky Business by Patrick Gray

          Risky Business

          373 Listeners

          Science Vs by Spotify Studios

          Science Vs

          12,172 Listeners

          Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

          Syntax - Tasty Web Development Treats

          990 Listeners

          Darknet Diaries by Jack Rhysider

          Darknet Diaries

          8,108 Listeners

          Practical AI by Practical AI LLC

          Practical AI

          212 Listeners

          Within Reason by Alex J O'Connor

          Within Reason

          1,659 Listeners

          All-In with Chamath, Jason, Sacks & Friedberg by All-In Podcast, LLC

          All-In with Chamath, Jason, Sacks & Friedberg

          10,224 Listeners

          Dwarkesh Podcast by Dwarkesh Patel

          Dwarkesh Podcast

          551 Listeners

          Big Technology Podcast by Alex Kantrowitz

          Big Technology Podcast

          513 Listeners

          Hard Fork by The New York Times

          Hard Fork

          5,546 Listeners

          The AI Daily Brief: Artificial Intelligence News and Analysis by Nathaniel Whittemore

          The AI Daily Brief: Artificial Intelligence News and Analysis

          662 Listeners

          Prof G Markets by Vox Media Podcast Network

          Prof G Markets

          1,471 Listeners

          The Pragmatic Engineer by Gergely Orosz

          The Pragmatic Engineer

          74 Listeners