GCP发布/订阅区域是否特定? [英] Is GCP pub/sub region specific?

查看:91
本文介绍了GCP发布/订阅区域是否特定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设在区域A中运行的代码发布了一条消息.B区和C区的云功能可以订阅此类事件吗?

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

推荐答案

标准为是.Pubsub是一项全球服务.如果发布者和订阅者位于同一区域,则没有理由更改消息区域.

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.

但是在跨区域中,消息被转发到订户区域,然后被使用.您看不到此机制,它是自动的,由PubSub

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

但是,如果您有法律约束,则可以限制可用区域用于PubSUb

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

这篇关于GCP发布/订阅区域是否特定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆