Pulsar 2.0
主要变化
需要注意一些重大变化,这些变化会显著影响 Pulsar 的日常使用。
在之前的版本中,Pulsar 有一个属性(property)的概念。 A property is essentially the exact same thing as a tenant, so the “property” terminology has been removed in version 2.0. The command-line interface, for example, has been replaced with the pulsar-admin tenants
interface. 在某些情况下,仍然使用 properties,但不推荐使用,并且在后续更新中会将其完全移除。
Topic 名称
在 Pulsar 2.0 版本中有两个重要改变:
- 不再使用集群部分
- 可以使用命名系统来简化 topic 名称。
/
is not allowed in topic name
不再使用集群部分
The cluster component has been removed from topic names. Thus, all topic names now have the following form:
{persistent|non-persistent}://tenant/namespace/topic
Topic 灵活性命名
在 Pulsar 2.0 内部,所有 Topic 名称的形式如上所示,但是在许多情况下(出于简便考虑),可以使用简化的名称。 灵活命名系统基于 topic 类型、租户及命名空间均有默认值,默认值如下:
下表为使用隐式默认值的 topic 名称的转换示例: