Azure事件中心如何处理不同的事件? [英] How are different events handled in Azure Event Hubs?

查看:127
本文介绍了Azure事件中心如何处理不同的事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过主题/队列和消息头的某种组合来区分不同的事件类型.在Kafka中,记录流仍作为主题分开( https://kafka.apache.org/intro).在浏览Azure Event Hubs文档时,我没有看到任何这样的想法.有分区,但这些分区与消费者并行性有关(

Different event types are discriminated by some combination of topics/queues and message headers. In Kafka, record streams are still separated out as topics (https://kafka.apache.org/intro). In going through the Azure Event Hubs documentation, I do not see any such idea called out. There are partitions, but these are related to consumer parallelism (https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-what-is-event-hubs#partitions), according to the documentation. Is the idea that you would one namespace in Azure Event Hubs, which contains an Event Hub for each "topic"?

推荐答案

是.我为Kafka中的主题"创建了一个事件中心,即每个事件中心都充当一个数据流. Event Hub中的分区就像Kafka中的主题分区一样工作,因为它们是主题内使用者并行性的单位.在同一个命名空间中创建多个事件中心似乎可以允许它们共享吞吐量单位(又称花费钱的事情),即吞吐量单位就像您的Kafka集群的大小.

Yes. I create one Event Hub for what would be a "topic" in Kafka, that is each Event Hub works as one stream of data. The partitions in Event Hub work like the topic partitions in Kafka in that they are units of consumer parallelism within a topic. Creating multiple event hubs within the same namespace appears to allow them to share throughput units (aka the things that cost money), ie the throughput units are like the size of your Kafka cluster.

这篇关于Azure事件中心如何处理不同的事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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