What’s the best rest vs graphql approach for our api to avoid breaking clients?
#1
I’m trying to decide between using a RESTful design or switching to GraphQL for our new service API, and I’m stuck on how to handle future changes without breaking existing clients. The flexibility in querying sounds great, but I’m worried about the complexity of implementing things like caching and rate limiting compared to what we’re used to.
Reply
#2
We flirted with GraphQL after REST, but the complexity of caching and rate limiting felt heavier in practice. We kept a REST path with versioned endpoints and a separate GraphQL surface until we could ship stable fields; the deprecation plan helped.
Reply
#3
I’m not sure the problem is changing the API at all; it might be tooling and how you monitor usage. We overestimated the need for perfect query flexibility and spent weeks building custom per field caches that nobody used.
Reply
#4
Do you need real-time subscriptions, or is read and write enough?
Reply
#5
Sometimes the blocker was not the API style but how we ship changes; a solid deprecation window and clear client communications did more to prevent breakage than choosing REST or GraphQL.
Reply


[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Forum Jump: