loading...
Cover image for Google Cloud Run Service with gRPC using Spring Boot

Google Cloud Run Service with gRPC using Spring Boot

rameshl profile image Ramesh Lingappa Updated on ・1 min read

Welcome to another article on Google Cloud Platform. If you are building services using GCP then you might already know the several limitations that come with it. One of them being a lack of support for gRPC in their easy to use solutions such as Google AppEngine (Standard and Flexible), Cloud Functions or in the initial days of Cloud Run.

So if we need to support or have our own gRPC services then we need to use either Google Compute Engine or Google Kubernetes Engine, which is not an easy solution for several small use cases.

An alternate question would be why gRPC? and what benefits does it offer over REST?

If you are new to gRPC, then I highly recommend giving a readout, https://grpc.io. In short,

gRPC is a modern open-source high-performance RPC framework that can run in any environment, efficiently connecting distributed services

grpc-communication

gRPC offers several benefits over HTTP APIs with JSON, some of them are,

  • Strong Contract-based communication
  • uses improved HTTP/2 protocol
  • Protobuf (efficient binary message format)
  • Great support for code generation on several languages

So gRPC is a great fit for communication between microservices.

Read more...

Discussion

pic
Editor guide