skip to Main Content

I have an existing application that I was trying to deploy it to google cloud run, but the application can’t connect to an external NATS services. It seems that cloud run only supports http, websockets, and gRPC for outbound connections and traffic. It doesn’t seem that an application can make a pure TCP/IP connection with binary data from a cloud run application.

Just looking for someone to confirm this. I have not been able to find any documentations that explicitly states the inbound and outbound limitations of cloud run.

Note: my app can connect to REDIS though.
Thank you for your help.

2

Answers


  1. Yes according with this document, Cloud Run just support HTTP, WebSockets and gRPC by the moment, also here is pointed the http requests not supported, I suggest you create a feature request, if the petition earns enough people popularity this feature can be added to Cloud Run

    Login or Signup to reply.
  2. There’s no outbound protocol limitation.

    In terms of inbound, Cloud Run only supports HTTP/1 and HTTP/2 (which includes gRPC) over TLS (HTTPS). That said, server-streaming is not supported (e.g. websockets or streaming gRPC calls).

    Therefore, you cannot serve with arbitrary TCP wire protocols on Cloud Run.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search