gRPC Gateway to RESTful APIs

Certainly, while designing a modern microservice architecture, performance counts

gRPC has gained popularity as a high-performance communication protocol because of its reliable typing, low latency, and efficient serialisation

But they also have to acknowledge that most inter-service connections across system boundaries still rely heavily on HTTP APIs

APIs to gRPC would cause a lot of conflict because they essentially serve as a contract between disjointed parties, such customers and API providers

Google Cloud demonstrates how to quickly and easily link the highly effective gRPC services with the widely used RESTful HTTP API environment

A method that uses an automatically generated gRPC gateway that can be placed with the existing gRPC service for the protocol translation that will give an HTTP interface

Their approach is based on a microservices architecture with numerous sub-components developed in different programming languages

The currency service is the first feature they want to investigate when onboarding users to their API platform

The protocol themselves, they opted to use the open-source gRPC gateway project to automatically generate an adaptor for their use case