多个客户端共享相同的nservicebus数据总线通道是否存在问题?

时间:2013-01-31 23:31:25

标签: azure nservicebus

这是我的设置: 我有一个azure web角色和一个辅助角色,它们都配置为通过blob存储使用数据总线通道。我现在需要添加另一个需要数据总线的Web客户端。

使用相同的数据总线通道是否可以接受,否则会导致与幕后消息的清理操作相关的问题?

更新 我在我的网络角色的事件日志中看到了这个错误:

An unhandled exception occurred. Type: Microsoft.WindowsAzure.StorageClient.StorageClientException Process ID: 2968
Process Name: w3wp
Thread ID: 12
AppDomain Unhandled Exception for role My.Assembly.Web_IN_4
Exception: The specified blob does not exist.
   at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result()
   at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait()
   at Microsoft.WindowsAzure.StorageClient.CloudBlob.FetchAttributes(BlobRequestOptions options)
   at NServiceBus.DataBus.Azure.BlobStorage.BlobStorageDataBus.DeleteExpiredBlobs()
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading._TimerCallback.PerformTimerCallback(Object state)

Inner Exception: The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebRequest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender)

1 个答案:

答案 0 :(得分:0)

我认为您必须使用相同的频道,因为发送方和接收方都必须能够访问它,而您只能配置一个,这意味着必须共享它。

它不应该导致清理问题,看到什么奇怪的?如果是这样,请告诉我!

亲切的问候, 伊夫