Kafka的topic和partition的命名约定应该是什么? [英] What should be naming convention of topic and partition of Kafka?

查看:211
本文介绍了Kafka的topic和partition的命名约定应该是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我尝试用于 kafka 的一些示例,

我不确定是否适合使用或任何特定的命名约定?

主题

<块引用>

  1. {name}_queue
  2. {name}_topic

  • 这里我认为第一个选项不好,因为主题不是完全排队.
  • 在计算机科学术语中,队列意味着先到先出.
  • 如果分区进入主题中的图片,那么主题将不再排队,因为主题分区内是队列的一部分,数据来自对于分区
<块引用>

  1. {name}_partition
  2. {name}_{kafka 主题名称}_partition
  3. {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

  1. {name}_queue
  2. {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

  1. {name}_partition
  2. {name}_{kafka topic name}_partition
  3. {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屋!

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