When services talk to each other thousands of times a second, JSON over REST starts to cost real CPU and bugs from mismatched payloads creep in. gRPC uses Protocol Buffers to define a strict contract, generates client and server code in many languages and runs over HTTP/2 with streaming built in. This course teaches you to design proto contracts that evolve safely and run gRPC services reliably in production.

What you'll learn

  • How gRPC works: HTTP/2, binary framing, metadata and the four call types
  • Protocol Buffers syntax and editions, scalar types, messages, enums and oneof
  • Designing proto APIs that evolve: field numbers, reserved fields and backward compatibility
  • Managing protos with the Buf CLI: linting, breaking-change detection and code generation
  • Implementing services in Go and Node.js, with notes for Python and Java
  • Unary, server-streaming, client-streaming and bidirectional calls
  • Deadlines, cancellation, retries and the standard status codes with rich error details
  • Authentication with TLS, mutual TLS and tokens in metadata
  • Interceptors for logging, metrics and tracing with OpenTelemetry
  • Load balancing, health checks and reaching gRPC from browsers with Connect or gRPC-Web, plus exposing REST via transcoding

Who it's for

  • Backend engineers building internal APIs between microservices
  • Teams with services in several languages who need a shared, typed contract
  • Developers working on mobile or IoT clients where payload size and latency matter

Prerequisites

  • Experience building HTTP APIs in Go, Node.js, Python or Java
  • Comfortable on the command line and with Docker
  • Familiarity with microservice concepts helps (see Microservices Architecture)

Outcomes

By the end of this course you will be able to:

  1. Design proto contracts that can change without breaking existing clients.
  2. Build and test gRPC services and clients in more than one language from the same contract.
  3. Use streaming, deadlines and proper error handling to make calls predictable.
  4. Secure, observe and load-balance gRPC services in a real deployment.

Projects you'll build

  • Inventory service – a Go gRPC service with a Node.js client, sharing contracts through a Buf module, practising proto design and code generation.
  • Live price feed – a server-streaming endpoint pushing price updates to many subscribers with back-pressure and cancellation, practising streaming and deadlines.
  • Browser-ready API – expose the inventory service to a web front end with Connect and to legacy clients with JSON transcoding, practising interoperability and mTLS between services.

Tools you'll use

Protocol Buffers with the Buf CLI, gRPC for Go and Node.js, Connect RPC, grpcurl and Postman for testing, Envoy for load balancing, and OpenTelemetry.

Course outline

ModuleTopic
1RPC, REST and when gRPC is worth it
2Protocol Buffers fundamentals
3Contract design and evolution
4Buf: linting, breaking changes, generation
5Unary services in Go and Node.js
6Streaming RPCs
7Deadlines, errors and retries
8Security: TLS, mTLS and auth metadata
9Interceptors and observability
10Load balancing and health checks
11Browsers, Connect and REST transcoding
12Project: a multi-language service mesh

FAQ

Should gRPC replace my public REST API?

Usually not. gRPC shines between your own services. Public APIs consumed by unknown clients are often better as REST; see REST and GraphQL API Design. We show how to offer both from one contract.

Which language is the course taught in?

The main examples are in Go and TypeScript. Because code is generated from the same protos, the concepts apply directly to Python, Java, Kotlin, C# and others.

Does it cover Kubernetes?

We show how gRPC load balancing behaves on Kubernetes, but cluster setup itself is covered in Kubernetes Fundamentals.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.