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

Custom Bot performance in Microsoft Teams is very slow.

Open Edwardfelix08 opened this issue 4 years ago • 4 comments

Bot Info

SDK Platform: TypeScript, NodeJS SDK Version: 4.11.0 Active Channels: MS Teams, Web Chat (via DirectLine) Deployment Environment: Azure App Service

Issue Description

Our Bot that is running in Web Chat and MS Teams 1:1 In MS Teams, it is often slow to respond to the User. Sometimes it takes ~15 seconds to respond back. But in WebChat that is not the case.

To Reproduce

Steps to reproduce the behaviour:

  1. Engage in an MS Teams 1:1 conversation with a custom bot
  2. Allow for a period of time to expire in the chat
  3. Pose a question to the custom bot in the conversation

Expected behaviour

A bot running in the MS Teams channel should have similar level of performance / responsiveness as other Channels.

Actual Result

The bot is responding very slow in MS Teams when compared to WebChat.

Thanks Edward Felix (Ecolab)

Edwardfelix08 avatar Mar 02 '22 09:03 Edwardfelix08

Hi @Edwardfelix08

In the Configuration settings of your App Service underneath General settings do you have Always on enabled?

image

dmvtech avatar Mar 02 '22 18:03 dmvtech

@dmvtech The configuration setting of APP Service is enabled. we have not changed any settings. Let us know if we can try some thing else for this issue.

Screenshot 2022-03-03 163205

Thanks Edward

Edwardfelix08 avatar Mar 03 '22 11:03 Edwardfelix08

Hi @Edwardfelix08,

At this point, I think we need to see if there's some concrete pathway to investigating this issue. Perhaps you could enable Application Insights (if you have not already done so) and share some of the (free of sensitive info) logs with us?

Additionally, could you check to see what exceptions, if any, your bot might be throwing?

I understand the initial response is slow, but once the bot does respond, does the conversation then continue normally from that point?

anishprasad01 avatar Mar 14 '22 18:03 anishprasad01

Closing this issue due to inactivity. If you still require assistance, please comment and we can reopen the issue.

anishprasad01 avatar Mar 22 '22 23:03 anishprasad01