开发者

MSMQ: Is there a way to set a "do not deliver before" value?

开发者 https://www.devze.com 2022-12-09 23:37 出处:网络
Is there a way to indicate a MSMQ message should not be delivered before a certain time? Essentially I want to be able to put messages back in the queue to be reprocessed in the future, say ten minut

Is there a way to indicate a MSMQ message should not be delivered before a certain time?

Essentially I want to be able to put messages back in the queue to be reprocessed in the future, say ten minutes from now. I would do this when the message processing has had some kind of error that I expect to be fix开发者_开发百科ed in the near future.


I don't think MSMQ itself has a way to accomplish this. What I have seen work, though it is kind of a kludge, is to set up another queue as a "retry queue" and just check it for messages less often (every 10 minutes in your example). Possibly tacking on some kind of retry count so you know when to abandon all hope.

0

精彩评论

暂无评论...
验证码 换一张
取 消