Advanced
GraphQL and gRPC
When REST is the wrong shape.
Two alternatives and the problems each is for: GraphQL for clients that shape their own reads, gRPC for services that talk to each other — with the N+1, schema and streaming issues each brings.
2 lessons written1 modules~1h reading
After this course you can
- Decide between REST, GraphQL and gRPC for a given consumer
- Implement a GraphQL schema with data loaders and know what to cache
- Define a protobuf contract, evolve it compatibly, and use streaming where it helps
Curriculum
2 lessons · outlined lessons show their plan01
GraphQL for Java backendsSchema-first with Spring for GraphQL, resolvers, DataLoader against N+1, and depth and complexity limits.13 mingRPC and Protocol BuffersContract-first services, code generation, unary and streaming calls, deadlines, and protobuf compatibility rules.13 min