Endpoints + gRPC + Cloud Run

164 views
Skip to first unread message

danm...@nomnomnow.com

unread,
Feb 7, 2020, 3:21:01 PM2/7/20
to Google Cloud Endpoints
Hi there,

I'm trying to figure out whether it will be possible to have a gRPC server running on Cloud Run (fully managed).

Ideally I'd like to use Endpoints for auth and quota management, as well as to help support both HTTP/JSON clients, as well as gRPC clients.

I've been reading through the documentation on using Endpoints with Cloud Run, as well as Choosing an Endpoints option, and I'm pretty confused about whether all of this is even possible.

If it is possible, I would really appreciate if someone could suggest what the "hello world" version of this configuration would look like.

Thanks in advance
Dan

Teju Nareddy

unread,
Feb 7, 2020, 3:35:47 PM2/7/20
to Google Cloud Endpoints
Hi Dan,

Perfect timing for this question. We just added support for gRPC on Cloud Run with ESPv2. We will release a tutorial (similar to OpenAPI on Cloud Run) next week.

To clear up some of your confusion:
  • Cloud Endpoints supports 2 options: OpenAPI or gRPC.
  • You can read this section to understand the difference between the OpenAPI and gRPC options.
  • To have a gRPC server running behind ESPv2, you need to use the gRPC option. You cannot use OpenAPI.
  • Until recently, the gRPC option did not support deployments on Cloud Run. With the tutorial we will release next week, that changes.
  • Once this works, you can also setup gRPC transcoding to support HTTP/JSON clients.

danm...@nomnomnow.com

unread,
Feb 7, 2020, 4:22:09 PM2/7/20
to Google Cloud Endpoints
That's great, thank you for the quick reply, Teju.

Teju Nareddy

unread,
Feb 10, 2020, 6:37:28 PM2/10/20
to Google Cloud Endpoints
Here is the tutorial for using ESPv2 with gRPC on Cloud Run: https://cloud.google.com/endpoints/docs/grpc/get-started-cloud-run
Reply all
Reply to author
Forward
0 new messages