System Design · Middle · Question 7 of 75
When is tRPC a good fit?
- ✓Correct answer: When frontend and backend are both TypeScript in one repository
- 2When the API must be public and used by third-party clients
- 3When the client is written in Swift and Kotlin and the server in Go
Explanation
tRPC infers server procedure types directly in the client without code generation or a schema. For public APIs and polyglot clients, REST with OpenAPI, GraphQL or gRPC are better.