filmov
tv
GraphQL vs. REST: When to choose which one?

Показать описание
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.
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.
Комментарии