Microsoft Azure EventHub中的事件保留 [英] Event retention in Microsoft Azure EventHub

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

问题描述

我正在检查有关事件中心中邮件保留的详细信息. 假设我已将tentionalPolicy设置为1天,并且已经发送了一些消息.然后,如果我将邮件的retentionPolicy更改为3天,现有的eventData也会保留3天吗?

I was checking on details about message retention in event hub. Suppose, I have set the retentionPolicy as 1 day and I had send some messages. Then, if I change the message retentionPolicy to 3 days, will the existing eventData also be retained for 3 days?

推荐答案

关于保留策略的另一个重要细节-EventHubs 不在消息级别应用保留策略.它在文件系统级别. EventHubs是高吞吐量事件获取管道.简而言之,它是云上的事件流-提供更高的吞吐量和性能-我们不处理任何事件级别的操作(例如,等效的服务是Message上的ServiceBus Q/Topics-TimeToLive属性).在封面的后面-eventhub实际上将数据存储在pages中(为了说明起见,可以说是10 MB).保留策略仅适用于这些pages.因此-即使您的保留政策为1天-如果集线器上的数据率非常低-甚至在10天前发送的某些邮件也可能仍然存在-使其成为page.

And one more important detail about retention policy - EventHubs does not apply the retention policy at message level. Its at file-system level. EventHubs is a high-throughput event ingestion pipeline. In-short it's a stream of events on cloud - to provide higher thruput & performance - we don't deal with any event-level operations (for example, an equivalent offering is ServiceBus Q/Topics - TimeToLive property on Message). Behind the covers - eventhubs actually stores data in pages (of lets say, for explanation sake 10 MB). Retention policy will be applied only on these pages. So - some of your messages which were sent 10 days before might also still be present, even if you have a retention policy of 1 day - if you have very-very-low data rates on the hub - making into that page.

这篇关于Microsoft Azure EventHub中的事件保留的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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