GraphQL vs. REST: When to choose which one?

preview_player
Показать описание
GraphQL is a popular choice for APIs these days, and there often is the question which approach to choose for designing and building APIs: Using the more traditional HTTP-based approach with OpenAPI descriptions and resource oriented API design, or choosing GraphQL which promises to have some advantages in terms of how flexibly clients can use an API.
This video explains when to choose which approach: GraphQL typically is used in more tightly coupled scenarios, when private APIs are designed for communications between front-ends and back-ends. REST/HTTP is a more popular choice for partner or public APIs, where the resource abstractions help users to better understand the API model, and where ease of understanding and use is of more importance than for private APIs.
In the end, GraphQL and REST/HTTP are two valid design choices for designing and building APIs, and it is very likely that both approaches will be around for a long time. Choosing which one to use is a question of the scenario as well as of the existing API landscape.
This video may be helpful for anybody interested in systems design and engineering, for example when researching and preparing for a systems design interview. Understanding that the choice is a design choice, and which factors go into it, is an important aspect when it comes to making the choice between GraphQL and REST.
Рекомендации по теме
Комментарии
Автор

Loved the beer example! Can never forget this now.😅😅

Thank you

holierthanthou
Автор

Thank you so much Erik ! Very well Explained.

technosoid
Автор

Hey Erik, thanks for your video! You need to promote your channel really. This is amazingly useful talk but not reaching to the correct audiences enough.

asbearful
Автор

what a terrible video.. like yeah of course you choose the right tool for the job, and this video basically repeats that same idea rather than actually answering the question posed by the title

TheOfficialEvasion
Автор

If there was some concrete examples where each has an advantage it would have been better

finetard
Автор

amazing he talked for 10minutes not saying anything relevant.

bobweee
Автор

I don't know why some people keep making some empty statements like "GraphQL is the future". It makes no sense.

AnshumanKumar