我正在使用 NServiceBus,并以 Azure 服务总线作为传输。每次发送消息时,我都会在日志中看到以下内容:
Checking existence cache for '...'
Checking namespace for existance of the queue '...'
Determined that the queue '...' exists
Queue '...' already exists, skipping creation
尽管日志中存在噪音(我可以过滤掉这些消息,但这不是重点),但我每次都担心这种检查的开销。如何配置 NServiceBus 以期望这些命名空间和队列存在并停止检查每条消息?
最佳答案
别担心,它不会一直进行远程检查(日志指向检查缓存的信息)
如果日志条目对您造成困扰,请随时从日志文件中过滤掉它们。
关于azure - NServiceBus 与 Azure 服务总线,始终检查命名空间和队列是否存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30494419/