tRPC vs REST vs GraphQL -- UK API Design (2026)

Updated: May 20269 min read
UKGBPComparisonUK GDPRUK Law

REST + OpenAPI 3.0 is the UK standard for external APIs -- NHS FHIR R4, FCA Open Banking, GDS, HMRC all use REST + OpenAPI 3.0. tRPC is ClickMasters default for internal TypeScript full-stack APIs (Next.js + Node.js -- zero boilerplate, end-to-end type safety). GraphQL is right for complex client-driven queries with multiple nested relationships -- not typically needed for UK regulated applications where REST is mandated. API design affects NHS DTAC Domain 4 interoperability, FCA Open Banking standards, GDS API standards, and developer productivity.

FactorREST + OpenAPI 3.0tRPCGraphQL
NHS FHIR R4 (external)REQUIRED -- NHS FHIR R4 is REST + OpenAPItRPC internal only -- not for NHS externalNot FHIR-compatible
FCA Open Banking (external)REQUIRED -- OBIE specs are REST + OpenAPI 3.0Not suitable for external Open BankingNot Open Banking compatible
GDS API Standard (external)REQUIRED -- GDS Service Standard Pt 16Not suitable for external GDS APIsNot GDS standard
Internal TypeScript full-stackBoilerplate-heavy -- manual typesBEST -- zero boilerplate, end-to-end typesRequires schema definition
Next.js App Router RSCREST fetch in Server ComponentsNative -- createCaller for RSCGraphQL client in RSC possible
UK GDPR audit trailHTTP request log -- standardtRPC logs as HTTP under the hoodGraphQL logging more complex
Developer productivity (TS teams)Medium -- OpenAPI codegen helpsHIGHEST for TS monoreposMedium -- schema + resolver overhead
Non-TypeScript consumersBEST -- REST universalTypeScript onlyAny language -- SDL required
ClickMasters defaultAll external UK APIs (NHS/FCA/GDS)All internal TypeScript full-stackComplex nested reads -- not regulated

Book a Free Consultation Honest advice. -> clickmasterssoftwaredevelopmentcompany.co.uk/contact/

Get Unbiased Technology Advice

Our architects are certified across all major platforms. We recommend what's actually right for your business — no commission, no bias.

Book Free Consultation