REST vs GraphQL: The killer API you're not using yet

Поделиться
HTML-код
  • Опубликовано: 22 май 2024
  • This video is sponsored by StepZen which is a GraphQL server with a unique architecture that helps developers build APIs fast and with less code (using declarative configurations).
    ❇️ Get your free account here: bit.ly/44aHxVQ
    In this video, we will explore GraphQL's benefits, compare it to REST APIs, discuss its coexistence with existing infrastructures and show you why you might consider the switch to the GraphQL API. After watching this video, you'll be able to make an informed decision about which API to use for your project.
    🔥 Build a Books App with React Native and GraphQL API ➡️ ruclips.net/user/live-qAhg4EDIwQ
    🔥 Build a StackOverflow Clone with React Native and GraphQL API ➡️ ruclips.net/user/liveiwgp777Mi54
    📰 Stay ahead with our newsletter for the latest tech in development:
    www.notjust.dev/links
    ❗Try our FREE 4-day Masterclass on notJust.Academy:
    assets.notjust.dev/masterclass
    📚 Enroll NOW in The Full-Stack Mobile Developer course and don’t miss out on your chance to become a 6-figure dev in 2023! Check out what our successful students are saying about their experience:
    academy.notjust.dev
    💬 Join the notJust Development gang and let's build together:
    Twitter: / vadimnotjustdev
    Instagram: / vadimnotjus. .
    Facebook: / notjustdev
    LinkedIn: / vadimsavin
    Discord: / discord
    Timecodes:
    0:00 Intro
    0:50 What is and how do REST APIs work
    1:50 What is and how does GraphQL work
    2:06 The main difference between GraphQL and REST APIs
    2:35 Fetching Data with GraphQL
    3:20 Communication in GraphQL
    3:50 CRUD Operations in REST API
    4:19 Operations in GraphQL: Queries, Mutations, and Subscriptions
    5:22 What problems does GraphQL help us solve?
    5:30 Overfetching and its Impact
    7:05 Underfetching and its Consequences
    9:54 Does GraphQL actually replace REST APIs?
    10:44 Developers opinion on GraphQL vs REST APIs
    11:25 Easily convert an existing REST API to GraphQL using StepZen
    13:02 Final Thoughts and Recommendations
    13:25 Outro
    #notjustdev #graphql #restapi
  • НаукаНаука

Комментарии • 36

  • @vladyslavpetrykov3031
    @vladyslavpetrykov3031 11 месяцев назад +2

    clearly explained 💯 Waiting for a video on how to integrate GraphQL on top of existing REST API 👨‍🏫😍

  • @walinkeio
    @walinkeio 10 месяцев назад

    Bon contenu, et beau travail de montage c'est agréable à regarder :)

  • @allanbengco670
    @allanbengco670 11 месяцев назад +2

    I initially consider myself mostly as a frontend developer. But after learning GraphQL, I've managed to shorten the learning gap between frontend and backend, enabling me to become full-stack. I still do REST projects from time to time, but GraphQL is the API I always go back to when I am given free hand to choose.

  • @user-nl2tj2fb2t
    @user-nl2tj2fb2t 10 месяцев назад

    best video i have seen on GraphQL !!

  • @vitorpeixoto2324
    @vitorpeixoto2324 11 месяцев назад

    Nice edit, Vadim! Thanks for the video!

  • @amitjohn6532
    @amitjohn6532 9 месяцев назад

    I want to ask you one question is React native still a good option to learn because Facebook itself is not using react native
    Just asking and what's the future hold for react native and
    Also for React.
    Yes next js expo etd etc stuff but i only want to know about the future holds for react native and react js
    Will there be react 19 in future?

  • @brijenmakwana2040
    @brijenmakwana2040 11 месяцев назад +3

    Both have their pros and cons. GraphQL is good but that doesn't mean we should stop using rest.

  • @andrewnguemnang2757
    @andrewnguemnang2757 11 месяцев назад

    Is possible to use graphql at the top of Rest api for query?

    • @notjustdev
      @notjustdev  11 месяцев назад

      Yes, you can easily do that using StepZen. Check out this tutorial for more details: ruclips.net/user/liveiwgp777Mi54?feature=share

  • @SuperYoda7
    @SuperYoda7 11 месяцев назад

    could you please do some tutorial using trpc and react-native? I would love to see that!

  • @shynggysumbetov4351
    @shynggysumbetov4351 11 месяцев назад

    Cool new style of video montage 👍🏽 thank u for brief explanation

  • @saulotarsobc
    @saulotarsobc Месяц назад

    10:58 nao sabia que o Paul 'Cabanis' era web developer kkkk

  • @faizansohail5855
    @faizansohail5855 11 месяцев назад

    does graphql removes the need for redux ? or should i use redux with graphql ?

    • @notjustdev
      @notjustdev  11 месяцев назад +2

      If you have complex state management requirements beyond just data fetching, you may choose to use Redux alongside GraphQL. Redux can be used to manage local application state, handle UI-related state changes, or manage non-GraphQL-related data. You can use GraphQL to fetch and update data, and Redux to manage other parts of your application state.

  • @andrewnguemnang2757
    @andrewnguemnang2757 11 месяцев назад +1

    Rest api with prisma can solve Many Problems

  • @davduran9858
    @davduran9858 11 месяцев назад

    And what about the future of these technologies ?

  • @AsifSaifuddinAuvipy
    @AsifSaifuddinAuvipy 8 месяцев назад

    Use JSON:API 1.1 with REST to make it Graph enabled Hyper media driven RESTful API which are great or even better in some case then graphql

  • @manishgonekar5831
    @manishgonekar5831 9 месяцев назад

    do a tut on bluetooth thermal printer

  • @faysal1991
    @faysal1991 11 месяцев назад +1

    nice one, can you give us a tutorial of GraphQL

    • @notjustdev
      @notjustdev  11 месяцев назад

      Thanks. Check out this one: ruclips.net/user/liveiwgp777Mi54?feature=share

  • @ThomazMartinez
    @ThomazMartinez 6 месяцев назад

    Nieko gero tas GraphQL daug ka su rest irgi galim padaryt, didziausia beda su G kai teko dirbti tai BE darbai daug reikejo jo

  • @usmanmarkaz
    @usmanmarkaz 11 месяцев назад

    make tutorial on GraphQL and How we make app with graphQl

    • @notjustdev
      @notjustdev  11 месяцев назад +1

      We have a few tutorials on GraphQL. Check them out on our channel.
      🔥 Build a Books App with React Native and GraphQL API ➡ ruclips.net/user/live-qAhg4EDIwQ
      🔥 Build a StackOverflow Clone with React Native and GraphQL API ➡ ruclips.net/user/liveiwgp777Mi54

  • @jopadjr
    @jopadjr 11 месяцев назад

    136th...Thanks

  • @saulotarsobc
    @saulotarsobc Месяц назад

    8:56 😂😂😂😂😂😂😂😂

  • @finitoon
    @finitoon 9 месяцев назад

    Oanda is rest api

  • @alexkey9372
    @alexkey9372 11 месяцев назад

    As someone who used both extensively, my advise is DO NOT use graphql if you want caching. It's a mess.

    • @notjustdev
      @notjustdev  11 месяцев назад

      What client library have you used?

    • @alexkey9372
      @alexkey9372 11 месяцев назад

      @@notjustdev All of them bro urql, apollo-client and others. It's all clustered when it comes to caching due to the fact that rest api follows the http protocols and all graphql requests are all POST. So with graphql to achieve the same, you need to do some hacking/amendments which honestly is not worth the time investment. I ended up using fastly edge caching but is really expensive. Used stellate caching in the beginning but switched as it had even more limitations.

  • @-EgoSerg-
    @-EgoSerg- 11 месяцев назад +3

    "31 API calls" for getting data about author, likes, comments....
    ahhhh.
    If you will did it.
    I have really bad news for you.
    I think you don't know hot to work relation databases or maybe you don't know how to correct create data structure for DB.

    • @notjustdev
      @notjustdev  11 месяцев назад

      Of course, you can adjust your REST api to return all of this data in the same query, and that would be a smart thing to do. You will do it for your main queries, but not for all the queries your app will make. So, in the end, you will either over fetch or under-fetch.

    • @-EgoSerg-
      @-EgoSerg- 11 месяцев назад

      @@notjustdev
      And i'm sure you know thet we can setup REST and we can also set what data we want to get.
      Ofcourse GraphQL is intresting solution and sometime it is easy to use, but not all time.
      But in any case, thank you for your job.
      I like to watch your videos

  • @joelmathew716
    @joelmathew716 11 месяцев назад

    tRPC

  • @kookianneeta
    @kookianneeta 11 месяцев назад

    tmzluv- kukiana8