使用 NServiceBus FileShareDataBus 时清理文件 [英] Cleanup files when using NServiceBus FileShareDataBus

查看:52
本文介绍了使用 NServiceBus FileShareDataBus 时清理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 NServiceBus 3 中使用 FileShareDataBus.是否支持清理数据总线文件?

I am using the FileShareDataBus in NServiceBus 3. Is there any support for cleaning up databus files?

如果不是,那么实现这一目标的最佳实践是什么(例如,您如何确保该文件不是错误队列中消息的一部分)?

If not, what would be the best practice to achieve this (like how do you ensure that the file is not part of a message that is in the error queue)?

推荐答案

鉴于无法知道消息在错误队列中停留多长时间,我通常会在相当长的时间(Max(SLA) + x 天)后清除

Given that it's impossible to know how long a message stay in the error queue I usually purge after a resonably long time (Max(SLA) + x days)

这篇关于使用 NServiceBus FileShareDataBus 时清理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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