What is the cost of having multiple subscriptions in Pulsar?

白昼怎懂夜的黑 提交于 2021-01-28 07:11:41

问题


What is the cost of creating multiple subscriptions on a topic? Does creating more subscriptions affect the broker, Bookkeeper or both?

I'm assuming it only adds work load to the broker but the work increased by adding another subscription is minimal since it would only have to duplicate the messages?


回答1:


In Pulsar, a topic (or a partition) is owned by a single Broker meaning that all reads and writes go through that broker. Brokers cache bookies entries in memory so that it can dispatch messages directly to all consumers. This will avoid a network round-trip and a possible disk read on bookies.

In addition, you should note that a broker must send data over the network for each subscription. This can lead to network saturation if you have a very high throughput.

Moreover Bookies also have a write/reach cache to reduce disk access.



来源:https://stackoverflow.com/questions/64603078/what-is-the-cost-of-having-multiple-subscriptions-in-pulsar

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!