网站建设资讯

NEWS

网站建设资讯

Pulsar2.0的新功能有哪些

本篇内容介绍了“Pulsar 2.0的新功能有哪些”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

在崇州等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都网站建设、网站建设 网站设计制作按需定制开发,公司网站建设,企业网站建设,高端网站设计,营销型网站,成都外贸网站建设,崇州网站建设费用合理。

Pulsar 2.0 是 Pulsar 一个新的主版本,其中有一些重大变化,包括简化的 Topic 名称,增加 Pulsar Functions 的功能,以及一些术语的变化等等。

Pulsar 2.0 的新功能

功能Description
Pulsar FunctionsPulsar 的一个轻量级计算功能

主要变化

需要注意一些重大变化,这些变化会显著影响 Pulsar 的日常使用。

属性 Vs. 租户

在之前的版本中,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 pulsar-admin properties command-line interface, for example, has been replaced with the pulsar-admin tenants interface. 在某些情况下,仍然使用 properties,但不推荐使用,并且在后续更新中会将其完全移除。

Topic 名称

Prior to version 2.0, all Pulsar topics had the following form:

{persistent|non-persistent}://property/cluster/namespace/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,其命名形式没有改变,并且以后也不会更改。

Topic 灵活性命名

在 Pulsar 2.0 内部,所有 Topic 名称的形式如上所示,但是在许多情况下(出于简便考虑),可以使用简化的名称。 灵活命名系统基于 topic 类型、租户及命名空间均有默认值,默认值如下:

Topic默认值
topic 类型persistent
租户public
命名空间default

下表为使用隐式默认值的 topic 名称的转换示例:

输入 topic 名称转换后的 topic 名称
my-topicpersistent://public/default/my-topic
my-tenant/my-namespace/my-topicpersistent://tenant/namespace/topic

对于非持久化 topics,需要指定 topic 的完整名称,因为持久化 topic 名称的默认规则在此不适用。 因此,不能使用如 non-persistent://my-topic 这样简化的名称,而应使用 non-persistent://public/default/my-topic

“Pulsar 2.0的新功能有哪些”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注创新互联网站,小编将为大家输出更多高质量的实用文章!


本文题目:Pulsar2.0的新功能有哪些
网页网址:http://cdweb.net/article/jsoepi.html