Microsoft Azure EventHub中的事件保留 [英] Event retention in 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?
推荐答案
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屋!