Azure事件中心如何处理不同的事件?

编程入门 行业动态 更新时间:2024-10-27 22:27:41
本文介绍了Azure事件中心如何处理不同的事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

通过主题/队列和消息头的某种组合来区分不同的事件类型.在Kafka中,记录流仍作为主题分开( kafka.apache/intro).在浏览Azure Event Hubs文档时,我没有看到任何这样的想法.有分区,但这些分区与消费者并行性有关( docs.microsoft/zh-cn/azure/event-hubs/event-hubs-what-is-event-hubs#partitions )文档.是要在Azure Event Hubs中使用一个命名空间,该命名空间包含每个主题"的Event Hub吗?

Different event types are discriminated by some combination of topics/queues and message headers. In Kafka, record streams are still separated out as topics (kafka.apache/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 (docs.microsoft/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事件中心如何处理不同的事件?

本文发布于:2023-11-07 14:41:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1566722.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:事件   如何处理   中心   Azure

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!