0 votes
in GraphQL by
How to do Server-side Caching in GraphQL? How is it different from REST?

1 Answer

0 votes
by
The biggest concern with GraphQL technology is that it is difficult to maintain the server-side cache compared to the REST. In REST API, we can easily cache data for each endpoint. This is because the structure of the data does not change. On the other hand, in GraphQL API, it's not clear what the client will request next, so it does not matter to put a caching layer right behind the API. That's why doing Server-side Caching difficult in GraphQL.

Related questions

+1 vote
asked Mar 1, 2022 in GraphQL by sharadyadav1986
0 votes
asked Apr 9, 2023 in GraphQL by rahuljain1
...