Kafka的topic和partition的命名约定应该是什么? [英] What should be naming convention of topic and partition of Kafka?
本文介绍了Kafka的topic和partition的命名约定应该是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我尝试用于 kafka 的一些示例,
我不确定是否适合使用或任何特定的命名约定?
主题
<块引用>- {name}_queue
- {name}_topic
- 这里我认为第一个选项不好,因为主题不是完全排队.
- 在计算机科学术语中,队列意味着先到先出.
- 如果分区进入主题中的图片,那么主题将不再排队,因为主题分区内是队列的一部分,数据来自对于分区
- {name}_partition
- {name}_{kafka 主题名称}_partition
- {name}_{kafka 主题名称}_part
解决方案
关于 Kafka 主题命名约定的写的不多,但是 这个可能会给你一些指导
Here are some example I was trying to use for kafka,
I am not sure it is good to go with or any specific naming convention?
For Topic
- {name}_queue
- {name}_topic
- Here I think first option is not good because Topic is not queue exactly.
- In the term of Computer Science Queue means First Come First Out.
- If partitions come into the picture in topic than Topic will be no longer queue because inside the topic partitions is part of queue and data comes from For Partitions
- {name}_partition
- {name}_{kafka topic name}_partition
- {name}_{kafka topic name}_part
解决方案
There is no much written related to Kafka topics naming convention, but this may give you some guidance
这篇关于Kafka的topic和partition的命名约定应该是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文