Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft Bot Framework - Bot goes to sleep. Is there a way to prevent it?

Tags:

botframework

My bot based on the bot framework works pretty good. But when I first interact with the bot after a period of inactivity (let's say a day), then the bot seems to take very long time (about 10-45 seconds) to send back its first reply. After that reply the response time is pretty good again.

To me it seems the back-end service goes to some kind of sleep mode and the 1st request wakes it up.

Is there any way to influence this behavior? I concerned about the long initial response time for my users.

Thanks for your help.

like image 533
gabics Avatar asked Nov 26 '16 20:11

gabics


People also ask

What is the difference between Azure bot and Web App bot?

What's the difference between the Azure Bot and the Web App Bot or Bot Channels Registration? The Bot Service behind Azure Bot and Web App Bot/Bot Channels Registration is the same; the change is in how the resources are created that you use in your bot such as web apps, language understanding, and more.

How does Microsoft bot framework work?

It hosts bots and makes them available to channels, such as Microsoft Teams, Facebook, or Slack. The Bot Framework Service, which is a component of the Azure Bot Service, sends information between the user's bot-connected app and the bot. Each channel can include additional information in the activities they send.

What is new in Microsoft bot framework?

Customer supportability. Developers using the Microsoft Bot Framework have many resources for getting help. Internal tools have been improved to increase the responsiveness of the engineering team in areas of most interest to developers. Creation of internal bots and improved tools for customer support.

What is Microsoft bot connector?

The Bot Connector service enables your bot to exchange messages with channels that are configured in the Azure Portal, by using industry-standard REST and JSON over HTTPS.


1 Answers

If using Azure website, see "Always On Support"

https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-configure

Always On. By default, web apps are unloaded if they are idle for some period of time. This lets the system conserve resources. In Basic or Standard mode, you can enable Always On to keep the app loaded all the time. If your app runs continuous web jobs, you should enable Always On, or the web jobs may not run reliably.

like image 167
Michael Washington Avatar answered Oct 10 '22 19:10

Michael Washington