Warm tip: This article is reproduced from serverfault.com, please click

Is GCP pub/sub region specific?

发布于 2020-11-28 18:39:47

Let's say a code running in Region A publishes a message. Can cloud function in region B and C subscribe for such events?

Questioner
Pavan Kumar
Viewed
0
guillaume blaquiere 2020-11-29 03:35:50

In standard, YES. Pubsub is a global service. If the publisher and the subscriber are in the same region, there is no reason the message change region.

But in cross region, the message is forwarded to the subscriber region and then consumed. You don't see this mechanism, it's automatic and managed by PubSub

However, if you have legal constrains, you can limit the available regions for PubSUb