Discover this podcast and so much more

Podcasts are free to enjoy without a subscription. We also offer ebooks, audiobooks, and so much more for just $11.99/month.

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

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

FromThe Backend Engineering Show with Hussein Nasser


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

FromThe Backend Engineering Show with Hussein Nasser

ratings:
Length:
58 minutes
Released:
Sep 26, 2019
Format:
Podcast episode

Description

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
Released:
Sep 26, 2019
Format:
Podcast episode

Titles in the series (100)

Welcome to the Backend Engineering Show podcast with your host Hussein Nasser. If you like software engineering you’ve come to the right place. I discuss all sorts of software engineering technologies and news with specific focus on the backend. All opinions are my own. Most of my content in the podcast is an audio version of videos I post on my youtube channel here http://www.youtube.com/c/HusseinNasser-software-engineering Buy me a coffee https://www.buymeacoffee.com/hnasr ?‍? Courses I Teach https://husseinnasser.com/courses