【问题标题】:Azure SignalR Service slow on first messageAzure SignalR 服务在第一条消息上很慢
【发布时间】:2019-04-22 08:06:00
【问题描述】:

托管版本的 Azure SignalR 服务在第一条消息上速度很慢。我的设置是两个 Azure Functions,一个用于 sub,一个用于 pub。 (就像微软的例子)。不确定是 SignalR 还是导致此缓慢启动的 Azure Functions。我如何解决它?它在我的用户开始聊天时就给他们带来了糟糕的用户体验。

这是两个函数用到的函数...

订阅功能

"disabled": false,
  "bindings": [
    {
      "authLevel": "anonymous",
      "type": "httpTrigger",
      "direction": "in",
      "name": "req"
    },
    {
      "type": "http",
      "direction": "out",
      "name": "res"
    },
    {
      "type": "signalRConnectionInfo",
      "name": "connectionInfo",
      "hubName": "chat",
      "direction": "in"
    }
  ]
}

消息函数

{
  "disabled": false,
  "bindings": [
    {
      "authLevel": "anonymous",
      "type": "httpTrigger",
      "direction": "in",
      "name": "req",
      "methods": [
        "post"
      ]
    },
    {
      "type": "http",
      "direction": "out",
      "name": "res"
    },
    {
      "type": "signalR",
      "name": "signalRMessages",
      "hubName": "chat",
      "direction": "out"
    }
  ]
}

我希望第一条消息与后续消息一样快。

【问题讨论】:

    标签: azure azure-signalr


    【解决方案1】:

    没有回应,所以我切换到 PubNub。 SignalR 服务太不可靠了。关闭这个。

    【讨论】:

    • 感谢您与我们联系以提供支持。很高兴你能在短时间内得到你需要的东西。干杯!
    猜你喜欢
    • 2019-05-12
    • 2012-04-15
    • 2021-01-21
    • 1970-01-01
    • 2019-01-08
    • 1970-01-01
    • 1970-01-01
    • 2021-10-31
    • 1970-01-01
    相关资源
    最近更新 更多