Microsoft Bot Framework - Bot 进入休眠状态。有办法防止吗?
Microsoft Bot Framework - Bot goes to sleep. Is there a way to prevent it?
我基于 bot 框架的 bot 工作得很好。但是,当我在一段时间不活动(比如说一天)后第一次与机器人互动时,机器人似乎需要很长时间(大约 10-45 秒)才能发回它的第一个回复。回复后回复时间又好了
对我来说,后端服务似乎进入了某种睡眠模式,第一个请求将其唤醒。
有什么方法可以影响这种行为吗?我担心用户的初始响应时间过长。
感谢您的帮助。
如果使用 Azure 网站,请参阅 "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.
我基于 bot 框架的 bot 工作得很好。但是,当我在一段时间不活动(比如说一天)后第一次与机器人互动时,机器人似乎需要很长时间(大约 10-45 秒)才能发回它的第一个回复。回复后回复时间又好了
对我来说,后端服务似乎进入了某种睡眠模式,第一个请求将其唤醒。
有什么方法可以影响这种行为吗?我担心用户的初始响应时间过长。
感谢您的帮助。
如果使用 Azure 网站,请参阅 "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.