SignalR and NServiceBus in a WebFarm

こ雲淡風輕ζ 提交于 2019-12-05 02:21:48

问题


I am trying to understand if/how this works.

Can SignalR and NServiceBus be used together to support full duplex on a web farm where the request could be sent from a server then later the response would come back but the user may be on another server.

The use case for this would be a user submits a form which then takes a while to process say 3-5 minutes. During that time the user is doing other things and could be switching between servers due to load balancing. Once the process is complete it would send a response back which would show a notification to the user.

If there are some articles on this that would be great.


回答1:


Allow me to refer you to Roy Cornelissen's great blog post on this very topic:

http://roycornelissen.wordpress.com/2013/03/11/an-nservicebus-backplane-for-signalr/




回答2:


Yes,

What you need to do is configure a scaleout-backplane for signalr so that messages can propagate between the nodes back to the user.

Here is a document that describes how to do it: http://www.asp.net/signalr/overview/performance-and-scaling/scaleout-with-windows-azure-service-bus

PS: there are other scaleout options besides the one used in this document, it's up to you.



来源:https://stackoverflow.com/questions/17180897/signalr-and-nservicebus-in-a-webfarm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!