What’s the best choice: restful vs GraphQL for a future-proof API?
#1
I’m trying to decide between using a RESTful design or moving 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 data is appealing, but I’m worried about the complexity of caching and the learning curve for our team.
Reply
#2
We went with REST and a clear versioning plan. We introduced deprecation windows and kept most clients on stable endpoints. Caching felt natural with HTTP headers and ETags, and we published a contract with every release so teams knew what would stay the same.
Reply
#3
We prototyped GraphQL for a feature, and the caching story got hairy real fast. Client caches and query flexibility could bypass server caching, and we ended up adding persisted queries and a lot of tooling just to feel sane.
Reply
#4
From the product side we leaned into contract first thinking. Define fields, publish deprecations with a timeline, and use feature flags to roll out changes. It slowed us down a bit, but it kept breaking changes under control.
Reply
#5
As a backend guy, I expected GraphQL to be a win, but the extra resolver work and schema management ate time. REST plus a small backend-for-frontend layer gave us predictable caching and a cleaner deploy path.
Reply
#6
QA heads up: cache invalidation is a ticking clock. We used TTLs on risky endpoints and added tests that fail when a field changes, so we notice breakages before clients do.
Reply
#7
Honestly, our docs grew into a wall and devs stopped reading them. It wasn’t purely about REST vs GraphQL; it felt like the real hurdle was keeping docs and examples fresh as APIs evolved.
Reply
#8
Is the real bottleneck here the process of shipping safe changes, or is the team just overwhelmed by the learning curve?
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: