paint-brush
GraphQL vs REST: How To Choose One Over The Otherby@yaf
8,218 reads
8,218 reads

GraphQL vs REST: How To Choose One Over The Other

by Fedor Yaremenko5mOctober 3rd, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

When choosing an API design architecture for a web app for transferring data, you can make a choice between REST and GraphQL. REST has become the industry standard for designing Web APIs. Thus, according to Postman’s 2020 State of the API Report 93.4% of respondents were most familiar with REST. By contrast, GraphQL is a modern revolutionary alternative for developing an API. GraphQL is great for applications where related and nested data are fetched because you can use the full power of its query language.GraphQL is also well suited for mobile development as bandwidth usage is optimized by avoiding over-fetching and under-fetching. But after weighing the pros and cons, we see that GraphQL is not always the best option. If you need a clear and convenient API without overhead, or you want to use HTTP capabilities like caching or authentication, you should choose REST.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - GraphQL vs REST: How To Choose One Over The Other
Fedor Yaremenko HackerNoon profile picture
Fedor Yaremenko

Fedor Yaremenko

@yaf

10+ years Java developer

About @yaf
LEARN MORE ABOUT @YAF'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Fedor Yaremenko HackerNoon profile picture
Fedor Yaremenko@yaf
10+ years Java developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite