#API

1 posts

REST vs GraphQL vs tRPC: Choosing an API Style
5 min read

REST vs GraphQL vs tRPC: Choosing an API Style

The criteria for deciding what to build a new API with: the strengths of REST standing on resources and HTTP semantics and its overfetching problem, what GraphQL solves by letting clients declare the data they need and the costs it takes on in exchange, the appeal of tRPC wiring types end-to-end in a TypeScript monorepo and its clearly bounded applicability, and the decision axes of public exposure, client diversity, and team structure.