Use a httputil reverse proxy to host grpc, rest and HTML on a single port
This helps you use Go to power the next generation of APIs+PWAs.
Prerequisites; This article assumes you know what protobuf and gRPC are, and have set up the grpc-gateway for REST already for your app.
The context
gRPC has become the default standard for modern Cloud Native RPC in Go. And gRPC is fine for backend service-to-service communication that can speak gRPC. To support older services, and the web, REST still reigns supreme.
Continue reading...
James is a "full stack" Open Source enthusiast, who enjoys creating no-nonsense open source software.