Last active
August 28, 2020 20:53
-
-
Save haldarmahesh/fcf71ee7de7eb11866e1ecfc92b6a588 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REST APIs | GraphQL | |
---|---|---|
one URL serves only one request which leads to 100s of URL to maintan | One URL to serves every request | |
Multiple roundtrip to get various kinds of data | Single trip to get various combinations of data | |
Unwanted data travel from server to client (Wastage of bandwidth) | Only required data is travelled which make response light and minimum number | |
No flexibility | Much more flexible | |
Keeps Backend and frontend team tightly coupled | Backend and frontend team are loosely coupled | |
Change in structure of APIs needs the client to change as well | Change in structure of API is not needed in client side | |