Why I Believe GraphQL Will Come to Replace REST

Why I believe GraphQL will come to replace REST

With REST, there is a continuous tension between efficiently satisfying the data needs of specific clients, and keeping the number of endpoints manageable. The reason for this tension is that a server defines what data an endpoint returns, and the client merely requests it. Especially in mobile apps, the overhead of performing separate requests or of requesting extraneous data is often unacceptable, so we’re forced to add ad-hoc endpoints with custom response structures.

This is something I’ve been thinking for a while now. I have spent many years building and advocating for RESTful APIs, but I’m ready to give them up. (although that’s not likely to happen yet)

Filed under