Pavan Kumar
Pavan Kumar

Reputation: 1911

Is GCP pub/sub region specific?

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

Upvotes: 1

Views: 1589

Answers (1)

guillaume blaquiere
guillaume blaquiere

Reputation: 76073

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

Upvotes: 5

Related Questions