azure - NServiceBus 与 Azure 服务总线,始终检查命名空间和队列是否存在

标签 azure nservicebus azureservicebus

我正在使用 NServiceBus,并以 Azure 服务总线作为传输。每次发送消息时,我都会在日志中看到以下内容:

Checking existence cache for '...'
Checking namespace for existance of the queue '...'
Determined that the queue '...' exists
Queue '...' already exists, skipping creation

尽管日志中存在噪音(我可以过滤掉这些消息,但这不是重点),但我每次都担心这种检查的开销。如何配置 NServiceBus 以期望这些命名空间和队列存在并停止检查每条消息?

最佳答案

别担心,它不会一直进行远程检查(日志指向检查缓存的信息)

https://github.com/Particular/NServiceBus.AzureServiceBus/blob/master/src/Transport/Creation/Resources/AzureServiceBusQueueCreator.cs#L115

如果日志条目对您造成困扰,请随时从日志文件中过滤掉它们。

关于azure - NServiceBus 与 Azure 服务总线,始终检查命名空间和队列是否存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30494419/

相关文章:

azure - 使用 scala 检查 parquet 文件是否存在

azure - Azure 应用程序网关是否支持条件 mTLS

msmq - nServiceBus、公共(public)交通、Rhino 服务总线、其他?

nservicebus - "Could not load file or assembly"/"or one of its dependencies. The module was expected to contain an assembly manifest."

Azure 服务总线 AMQP 对象接收器已中止

powershell - 错误获取-AzureKeyVaultSecret : Unable to retrieve service key for ServicePrincipal account

azure - Azure 管理证书的用途

nservicebus - 群集故障转移安全 NServiceBus 订阅

Azure服务总线: 1 client -> 1 queue approach - how to manage dead-letter queues?

python - 使用 python 获取 Azure 服务总线的计数