Can we pull messages from GCP Pub/Sub subscription over Interconnect?

371 Views Asked by At

It is feasible to pull messages from GCP Pub/Sub subscription over public Internet by reaching to the public GCP Pub/Sub API endpoint.

However, is it feasible to pull messages over the GCP dedicated Interconnect for more stable network connection? I would like to reduce the workload of proxy for reaching Public Internet by going through the private dedicated Interconnect channel.

2

There are 2 best solutions below

0
kristen_1024 On BEST ANSWER

GCP provide private access options for private routing. One of the example that suits the use case is the private service connect endpoint.

A private endpoint is deployed in the GCP project. On-premise host can access google API via this endpoint through VPC or Interconnect access, instead of the public API endpoint, such that the traffic can avoid exposing in the public Internet.

https://cloud.google.com/vpc/docs/private-access-options

0
annaco On

Please see the docs on service APIs overview, which explain that:

Requests to the global endpoint made over Interconnect are routed similarly to requests originating in the region associated with the interconnection. In case Pub/Sub becomes unavailable in a region, requests originating within the same Google Cloud region are not load balanced to a different region.