简体   繁体   English

减少 Bot Connector 的延迟

[英]Reduce latency of Bot Connector

I figured out that there's always latency of about two to three seconds when sending messages through the Bot Connector of Microsoft's Bot Framework independent of which channel type I'm using.我发现通过 Microsoft Bot Framework 的 Bot 连接器发送消息时总是有大约两到三秒的延迟,而与我使用的通道类型无关。

This means if I call the POST .../messages API method of my Bot directly (so not going through the Bot Connector) I get an answer within several dozens ms.这意味着如果我直接调用我的 Bot 的 POST .../messages API 方法(所以不通过 Bot 连接器),我会在几十毫秒内得到答案。 However, if messages are routed through bot connector (eg when I use Direct Line communication or Telegram or any other supported channel) it always takes about two to three seconds until I get an answer.但是,如果消息是通过 bot 连接器路由的(例如,当我使用 Direct Line 通信或 Telegram 或任何其他支持的通道时),它总是需要大约两到三秒钟才能得到答复。

For a possible user this would not be a good user experience so that I'm wondering whether either I'm doing someting wrong (eg Bot Connector settings) or whether this is a general problem and will be improved at a later pont of time.对于可能的用户来说,这不是一个好的用户体验,所以我想知道是我做错了什么(例如 Bot Connector 设置),还是这是否是一个普遍问题,稍后会得到改进。

Thanks a lot in advance.非常感谢。

This is a known issue.这是一个已知的问题。 The BotFramework is still in Preview, so it has yet to be optimized. BotFramework 仍处于预览阶段,因此还有待优化。 Expect to see significant performance improvements in the near future.预计在不久的将来会看到显着的性能改进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何有选择地断开Microsoft Bot Connector的LUIS? - How to disconnect LUIS of Microsoft Bot Connector selectively? Microsoft bot 连接器中的 bot 标准/高级通道是什么? - What are bot Standard/Premium channels in Microsoft bot connector? 如何将python bot连接到Microsoft bot连接器 - How to connect my python bot to microsoft bot connector 我想在计算 Bot Latency 时编辑我的消息 - I want to edit my message as it calculates the Bot Latency Bot Builder for Node.js与Bot Connector Node.js用于创建提供按钮选项的机器人 - Bot Builder for Node.js vs Bot Connector Node.js for creating bot that provides button options microsoft.bot.Connector 的 MSAL 升级版本 nuget - MSAL upgrade version for microsoft.bot.Connector nuget 在 UWP 应用程序中使用 Microsoft.bot.Connector.DirectLine - Using Microsoft.bot.Connector.DirectLine in a UWP application discord.ext.commands.errors.CommandInvokeError:命令引发异常:AttributeError:“Bot”object 没有属性“Latency” - discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Bot' object has no attribute 'Latency' 我怎样才能减少代码? discord 机器人 python - How can i reduce code ? discord bot python 如何在Bot Framework连接器的此侦听功能中手动发送请求和响应对象? - How i can manually send req and response object in this listen function of connector in Bot Framework?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM