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

2024 ж. 22 Мам.
11 668 Рет қаралды

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 ➡️ kzhead.info-qAhg4EDIwQ
🔥 Build a StackOverflow Clone with React Native and GraphQL API ➡️ kzhead.infoiwgp777Mi54
📰 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

Пікірлер
  • clearly explained 💯 Waiting for a video on how to integrate GraphQL on top of existing REST API 👨‍🏫😍

    @vladyslavpetrykov3031@vladyslavpetrykov303111 ай бұрын
  • Bon contenu, et beau travail de montage c'est agréable à regarder :)

    @walinkeio@walinkeio10 ай бұрын
  • 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.

    @allanbengco670@allanbengco67011 ай бұрын
  • best video i have seen on GraphQL !!

    @user-nl2tj2fb2t@user-nl2tj2fb2t10 ай бұрын
  • Nice edit, Vadim! Thanks for the video!

    @vitorpeixoto2324@vitorpeixoto232411 ай бұрын
    • Thanks!

      @notjustdev@notjustdev11 ай бұрын
  • 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?

    @amitjohn6532@amitjohn65329 ай бұрын
  • Both have their pros and cons. GraphQL is good but that doesn't mean we should stop using rest.

    @brijenmakwana2040@brijenmakwana204011 ай бұрын
  • Is possible to use graphql at the top of Rest api for query?

    @andrewnguemnang2757@andrewnguemnang275711 ай бұрын
    • Yes, you can easily do that using StepZen. Check out this tutorial for more details: kzhead.infoiwgp777Mi54?feature=share

      @notjustdev@notjustdev11 ай бұрын
  • could you please do some tutorial using trpc and react-native? I would love to see that!

    @SuperYoda7@SuperYoda711 ай бұрын
  • Cool new style of video montage 👍🏽 thank u for brief explanation

    @shynggysumbetov4351@shynggysumbetov435111 ай бұрын
  • 10:58 nao sabia que o Paul 'Cabanis' era web developer kkkk

    @saulotarsobc@saulotarsobcАй бұрын
  • does graphql removes the need for redux ? or should i use redux with graphql ?

    @faizansohail5855@faizansohail585511 ай бұрын
    • 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.

      @notjustdev@notjustdev11 ай бұрын
  • Rest api with prisma can solve Many Problems

    @andrewnguemnang2757@andrewnguemnang275711 ай бұрын
  • And what about the future of these technologies ?

    @davduran9858@davduran985811 ай бұрын
  • 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

    @AsifSaifuddinAuvipy@AsifSaifuddinAuvipy8 ай бұрын
  • do a tut on bluetooth thermal printer

    @manishgonekar5831@manishgonekar58319 ай бұрын
  • nice one, can you give us a tutorial of GraphQL

    @faysal1991@faysal199111 ай бұрын
    • Thanks. Check out this one: kzhead.infoiwgp777Mi54?feature=share

      @notjustdev@notjustdev11 ай бұрын
  • Nieko gero tas GraphQL daug ka su rest irgi galim padaryt, didziausia beda su G kai teko dirbti tai BE darbai daug reikejo jo

    @ThomazMartinez@ThomazMartinez6 ай бұрын
  • make tutorial on GraphQL and How we make app with graphQl

    @usmanmarkaz@usmanmarkaz11 ай бұрын
    • We have a few tutorials on GraphQL. Check them out on our channel. 🔥 Build a Books App with React Native and GraphQL API ➡ kzhead.info-qAhg4EDIwQ 🔥 Build a StackOverflow Clone with React Native and GraphQL API ➡ kzhead.infoiwgp777Mi54

      @notjustdev@notjustdev11 ай бұрын
  • 136th...Thanks

    @jopadjr@jopadjr11 ай бұрын
  • 8:56 😂😂😂😂😂😂😂😂

    @saulotarsobc@saulotarsobcАй бұрын
  • Oanda is rest api

    @finitoon@finitoon9 ай бұрын
  • As someone who used both extensively, my advise is DO NOT use graphql if you want caching. It's a mess.

    @alexkey9372@alexkey937211 ай бұрын
    • What client library have you used?

      @notjustdev@notjustdev11 ай бұрын
    • @@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.

      @alexkey9372@alexkey937211 ай бұрын
  • "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.

    @-EgoSerg-@-EgoSerg-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.

      @notjustdev@notjustdev11 ай бұрын
    • @@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

      @-EgoSerg-@-EgoSerg-11 ай бұрын
  • tRPC

    @joelmathew716@joelmathew71611 ай бұрын
  • tmzluv- kukiana8

    @kookianneeta@kookianneeta11 ай бұрын
KZhead