将 SignalR 与 Azure Service Fabric 结合使用 [英] Using SignalR with Azure Service Fabric

查看:24
本文介绍了将 SignalR 与 Azure Service Fabric 结合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以将 signalR 与 Microsoft 提供的 Service Fabric 一起使用吗?我正在尝试通过 signalR/websocket 连接将 UWP 应用程序和 angularJS 应用程序连接到托管在 Azure 集群中的无状态可靠服务.但是两者都无法打开这样的连接.在我的本地机器上一切正常.

Is it possible to use signalR with Service Fabric provided by Microsoft? I'm trying to connect an UWP app and an angularJS app to my stateless reliable service hosted in an Azure Cluster through signalR/websocket connection. But both are not able to open such a connection. On my local machine everything works fine.

在 Service Fabric 中使用 signalR/websockets 有什么特别需要考虑的吗?有例子吗?

Is there anything special to consider of using signalR/websockets with Service Fabric? Is there any example?

推荐答案

需要配置负载均衡到客户端ip.然后用户将始终到达同一个节点,而其他用户将始终到达其他节点.用户到节点的关系将是持久的.

You need to configure the load balancer to the client ip. Then the user will always get to the same node and other users to other nodes. The user to node relationship will be persistent.

这篇关于将 SignalR 与 Azure Service Fabric 结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆