Technology · Ebook
Connect RPC: Browser- and gRPC-Compatible APIs from Protobuf
by Shriira Press
Connect is a family of libraries — connect-go, connect-es, connect-swift, connect-kotlin and more — for building HTTP APIs from Protocol Buffer schemas. You write a .proto file, generate idiomatic clients and server interfaces, and implement your logic while Connect handles routing, marshaling, errors and streaming. What sets it apart is that one server speaks three protocols at once: the simple, curl-friendly Connect protocol over plain HTTP, plus full gRPC and gRPC-Web compatibility with no translating proxy. This book covers the problem Connect solves, Protobuf and code generation with Buf, the Connect wire protocol, gRPC and gRPC-Web interoperability, building servers and clients in Go and TypeScript, interceptors and the four streaming patterns, and how teams adopt Connect in production.
Contents
- 1Preface
- 2Chapter 1 — What Connect Is
- 3Chapter 2 — Schemas and Code Generation
- 4Chapter 3 — The Connect Protocol
- 5Chapter 4 — gRPC and gRPC-Web Compatibility
- 6Chapter 5 — Building Servers and Clients
- 7Chapter 6 — Interceptors and Streaming
- 8Chapter 7 — Connect in Practice
