botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Performance] Slow response and timeouts when published to Southeast Australia

Open LTsLlama opened this issue 9 years ago • 4 comments

Bot Info

  • Bot handle: livebot_dev
  • App ID: 331e99c1-42d3-49bc-ba05-316c38ca5332
  • SDK Platform: .NET
  • SDK Version: 3.9.1.0
  • Active Channels: WebChat, Direct Line, Teams, Skype
  • Deployment Environment: Azure App Service

Issue Description

We have a bot environment with the messaging endpoint in Southeast Australia and LUIS in Southeast Asia, but are getting worse latency and a lot of timeouts from an Australian Web Chat than when everything was published in the West US. We where expecting an improvement in latency, but this is not the case.

The only explanation we can think of is that the Bot Framework is not available in Australia so all messages go to the US first, then the messaging endpoint in Aus and then LUIS in Asia.

Questions

  1. In which regions is the bot framework currently available?
  2. How can we improve the performance in Australia and other regions?

LTsLlama avatar Sep 21 '17 00:09 LTsLlama

We deployed the same bot messaging endpoint and LUIS model to East US2 and the performance is great from a web chat in the east US, confirming that the Bot Framework is the bottleneck in Australia.

LTsLlama avatar Sep 25 '17 00:09 LTsLlama

Not sure if the same with East AU data center. This is the remote dependency tree for one Post activity. image

In average response takes 8-9 secs which is a lot. Dapper + SQL takes less than 25ms to process and save logs and conversations.

Deployed to US West 2 (where I understand the DirectLine endpoints leave). image

2-3 secs is the best response... but after: image

So, my web app is hosted in the same location as DirectLine. I can see that internal logic takes less than 30ms to process. Any ideas why DirectLine takes 4 seconds to respond?

nicksav avatar Oct 26 '17 11:10 nicksav

Can you please let us know if the issue still persists?

fanidamj-zz avatar Jun 22 '18 00:06 fanidamj-zz

please open a new issue if the issue persists

JasonSowers avatar Jun 28 '18 15:06 JasonSowers