SignalR with Service Fabric Stateless Web API

孤人 提交于 2019-12-01 09:06:07

问题


Got some info from this related question: Using SignalR with Azure Service Fabric

Quote in quote from that comment history: "After deploying this application, you can see that some calls to signalR fails and Some succeeds...."

Just want to know if anybody had similar implementation (signalR with Web API...). And I don't want to set instance count 1 for the stateless Web API.


回答1:


You can configure LoadBalancer that is used by Service Fabric to persist session. This will result in particular client ending up always in the same node.

You can do it by accessing LoadBalancer assigned to service fabric cluster in azure portal. Then go to "Load balancing rules", select rule that is responsible for signalR port and set "Session persistence" to "Client IP". This can also be done from PowerShell or ARM template.



来源:https://stackoverflow.com/questions/36818744/signalr-with-service-fabric-stateless-web-api

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