Graphql vs REST: Which one is better? (2020)

Click for: original source

When you need to build an API, your mind will likely jump to REST, the de facto standard for API creation. However, this is changing with the increase of GraphQL popularity. This post was originally posted in May 2019 and updated in March 2020. Published by João Inez on imaginarycloud.com.

The goal is to provide a brief explanation to anyone who still hasn’t got to know GraphQL, clarify exactly what it does better than REST, for those who are still skeptic about this technology and in which cases we should use GraphQL or REST.

The article reads about GraphQL’s main features and the advantages that it has over REST, highlighting a few points in which both differ. GraphQL is a query language for APIs that enables declarative data fetching in order to give the client the power to specify exactly the data that is needed from the API. It makes easier to evolve APIs over time.

The main sections of the article:

  • What is GraphQL
    • Who created GraphQL
    • Which companies use GraphQL
    • GraphQL in context
  • What is REST
  • Why WAS GraphQL created if there’s already REST
  • Why GraphQL is better than REST

… and much more. GraphQL provides a smooth and fast development environment with its declarative and flexible nature, offering many improvements over REST. Excellent read!

[Read More]

Tags apis nodejs web-development software-architecture