REST vs. GraphQL: Critical Look

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024

ความคิดเห็น • 40

  • @samirsaeedi74
    @samirsaeedi74 5 ปีที่แล้ว +103

    starts at 17:08

    • @xNReaperx
      @xNReaperx 4 ปีที่แล้ว +4

      Thank you

    • @batabatonica
      @batabatonica 4 ปีที่แล้ว +4

      people like you

    • @moritzw42
      @moritzw42 4 ปีที่แล้ว +3

      this type of comment is great and needed for 80% of all youtube videos.

  • @osman3404
    @osman3404 5 ปีที่แล้ว +14

    Woow! Honesty this they BEST talk on REST vs Graphql. I like how The conclusions of the speaker are based on objective criteria and very well understood concepts and standards.

    • @BGivo
      @BGivo 4 ปีที่แล้ว +4

      That's so strange, because I thought almost completely the opposite. It seems he presented his opinions as facts, and then drew conclusions from them as if they were facts.

  • @sonyvegasuser
    @sonyvegasuser 5 ปีที่แล้ว +19

    Your REST pros and cons don't seem to align with any of the experience we have had in the last 10 years of building REST APIs. I'm not sure where you get that there is a high learning curve. You can build a REST API in spring framework with a handful of lines of code. I like GraphQL but this comparison seems very biased and slanted.

    • @KheraShanu
      @KheraShanu 5 ปีที่แล้ว +5

      code for 10 more years and you will get it

    • @closure4791
      @closure4791 4 ปีที่แล้ว

      I also have no idea

    • @coolemur976
      @coolemur976 3 ปีที่แล้ว

      @Mike Dunn I think you talking about "so-called REST APIs" 19:56
      If you create REST API and follow all its rules, then things might get trickier.
      For a starter: REST API must be uniform. It must follow HTTP rules (right headers, right status codes, etc.). Have layered architecture. Rarely companies follows all the rules, because they want to make things happen quick.
      You can take "REST API" and ask yourself a question "why it's not a real REST".
      Most likely you will find a bunch of things that are not following REST architecture.

  • @lexsoft3969
    @lexsoft3969 4 ปีที่แล้ว +1

    I am interested in learning GraphQL, knowing its advantage. But when I started to read its documentation, my motivation decreased, and turned to look at good articles on REST API and found one. I don't know. However, my goal is to have skill on both techs, knowing which areas each tech fits best.
    Btw the speaker, Zdenek Nemec is a good guy; he answered my question for suggestions via email. :)

  • @steveeuphrates-river7342
    @steveeuphrates-river7342 2 ปีที่แล้ว

    I like this presentation- good and bad points of each.

  • @aiukar
    @aiukar 3 ปีที่แล้ว

    Thank you very much for this, Zdenek! Really helpful all the categories you present and how the different technical solutions match those categories. I definitely liked it and helped me understand a lot of concepts. Please, keep sharing :)

  • @osquigene
    @osquigene 4 ปีที่แล้ว +8

    Why choose between Rest and GraphQL? I mean both can live next to each other and you can take advantage of both, depending on what you want to expose. More or less: data -> graphql, all the rest -> rest

  • @a0um
    @a0um ปีที่แล้ว

    @nordicapis what resources would you recommend to learn about REST and how to implement it?

  • @param_at_youtube
    @param_at_youtube 5 ปีที่แล้ว +1

    This video deserves more likes!!

  • @rodelias9378
    @rodelias9378 2 ปีที่แล้ว

    Well done! Thank you!!

  • @martingauthier5245
    @martingauthier5245 5 ปีที่แล้ว +2

    This is an AWSOME Talk on REST vs GraphQL. Good Job !!!!

  • @nitnekb1954
    @nitnekb1954 5 ปีที่แล้ว

    Excellent, thx a lot "Z"!

  • @shaunwhyte6686
    @shaunwhyte6686 3 ปีที่แล้ว

    I dont really understand caching issues aside from Brower cache, aside from that you can cache like normal?

  • @SkywalkerWroc
    @SkywalkerWroc 5 ปีที่แล้ว +4

    Not sure if the guy ever heard of OpenAPI standard... it solves large chunk of the complains he has about REST APIs, while most of the other issues he had were fundamentally sourced in lack of communication, poor project management, lack of architecture, he was lucky not to stumble upon similar issues with GraphQL, always new girlfriend is more sexy one, but you can screw up GraphQL just like you can screw up REST. Not to mention that some of the issues he has are also an advantages if you have someone with architect mindset in your team.
    REST is like a PC, GraphQL is like a next shiny console (with SOAP being one of the older generations of a console) - sure, there's plenty of shit on PCs, and it's easy to build one that doesn't work, but at the end of the day - it still holds the upper hand.

    • @KheraShanu
      @KheraShanu 5 ปีที่แล้ว +1

      30:20 he talks about swagger, so I am pretty sure he knows OpenAPI standards

  • @alex_chugaev
    @alex_chugaev 3 ปีที่แล้ว

    I think you can succeed with either of technologies if you're cooking them right

  • @burnsnewman
    @burnsnewman 3 ปีที่แล้ว

    I'm dissapointed that the gRPC and protobuf were completely ignored here. Especially when talking about performance. Also, I don't agree with some of the disadvantages of GraphQL and advantages of REST. For example - I think that application-level caching is more significant than network level caching. You have to know what to cache and for how long - and this knowledge belongs to application, not the infrastructure. Also, some of the presented advantages (like paging and the whole HATEOAS) of REST APIs are not guaranteed by openapi/swagger specification and therefore can be subject of bikeshedding in same way as in GraphQL APIs.

  • @jonnytheponny5753
    @jonnytheponny5753 4 ปีที่แล้ว +13

    He is only advociting for REST, because with GraphQL he would loose its Job;-) GraphQL solves almost all Problems of REST and makes APIs so much easier and better.
    I spent a lot if time comparing REST versus GraphQL. GraphQL is in almost all cases the better choice.
    1.) REST only wins in having multiple Representations (that 90% of the users do not need)
    2.) REST can have a slightly better performance (due to parsing overhad of GraphQL)
    3.) in REST caching can be easier. (But I hardly know any API that uses standard Internet-Caches, what he talks about). Caching is so complex, you normally do inside the server and then it is the same for GraphQL and REST.
    4.) And yes, you have to do your homework with GraphQL to write query optimized Resolvers (N+1 Problem). But this is solvable.
    All the other cases he talks about you can have a completly oppositie view and stuff you can easily do with GraphQL, much better. It's like my dad defending that the music of the Beatles is the best music ever...

    • @gcfdcfgd2728
      @gcfdcfgd2728 4 ปีที่แล้ว +1

      What do you mean by "multiple Representations"?

  • @mrwho2513
    @mrwho2513 5 ปีที่แล้ว +3

    this was a "critical conclusion" based on your research, not a critical look on some examples

  • @FilipCordas
    @FilipCordas 5 ปีที่แล้ว

    Can someone explain to me how is GraphQL different than a regular graph database? How is this suppose to be better then a good fast graph database you probably won't be able to make it run faster than the database so why?

    • @intelligentornotintelligen5485
      @intelligentornotintelligen5485 5 ปีที่แล้ว +3

      it's not a database , it's an API..

    • @iex32
      @iex32 4 ปีที่แล้ว

      @@intelligentornotintelligen5485 ahaha LOL ))))

    • @h0ph1p13
      @h0ph1p13 3 ปีที่แล้ว

      Pretty much all they have in common is the word "graph" and maybe some of the concept. Outside of that - they are two completely different things.

    • @FilipCordas
      @FilipCordas 3 ปีที่แล้ว

      @@h0ph1p13 Well no GraphQL is to graph database what odata is to sql. Sure you could make odata work with anything but once you get into advance stuff you actually need you really can't make it work. This just one more needles abstraction for 99% of applications.

  • @BlackShampoo75
    @BlackShampoo75 5 ปีที่แล้ว +4

    Oranges vs apple juice

  • @TomerBenDavid
    @TomerBenDavid 3 ปีที่แล้ว

    :)

  • @intelligentornotintelligen5485
    @intelligentornotintelligen5485 5 ปีที่แล้ว +1

    let's not use graphql , for the sake of engineering!

    • @hexchad765
      @hexchad765 4 ปีที่แล้ว +1

      I love when I find strange, emotional, but enthusiastic opinions. It gives more insight into the person than the question