Microsoft Bot Framework Queries
Bot Info
- Active Channels: MS Teams
Issue Description
- What is the max / ideal message size of the message Microsoft bot connector sends to the chat bot ?
- What is the maximum number of connections Microsoft Bot Framework allows ?
- What is the maximum number of messages (message per minute / sec) that is permitted by Microsoft Bot Framework ?
- How does app-id behave when a bot / resource is deployed for multiple data centers ? (Is app id specific to the data center?)
What is the max / ideal message size of the message Microsoft bot connector sends to the chat bot?
There is no set limit within the bot framework itself, however as you've mentioned this is dependent on the channel connector itself. In your case, with respect to Microsoft teams the documentation on message length can be found here
What is the maximum number of connections Microsoft Bot Framework allows ?
Aside from the throttling mentioned in the answer to the next question, there is no set or official connection limit currently. Discussion on this can also be found here
I'd like to note that the free tier allows for 10k messages a month, with the bot shutting down after that, however there is not a concurrent connection limit set on how these are used.
What is the maximum number of messages (message per minute / sec) that is permitted by Microsoft Bot Framework ?
Taken from this documentation
"The Bot Framework does not impose any restrictions on the number of messages that a bot may send. However, most channels enforce throttling limits to restrict bots from sending a large number of messages in a short period of time. Additionally, if the bot sends multiple messages in quick succession, the channel may not always render the messages in the proper sequence."
With respect to rate limiting in MS teams in particular, this is in flux so the reccomendation is to follow the documentation here
How does app-id behave when a bot / resource is deployed for multiple data centers ? (Is app id specific to the data center?)
The appID is specific to your bot, however your bot is tied to a specific data center on creation. Effectively the answer to this is yes, each instance of your bot will have an appID and if you choose to create multiple instances with different data centers each of those will have a different appID.
Hi Team, For the last question, i understand that the appID is tied to the Microsoft DC where the resource was created. If there is a requirement to keep the appID constant for a particular region / globally, will that be possible in any way ?
Regionally is possible, but globally is not unless you route all requests to the same bot instance. However this might result in a slower experience the further out the instance is from your customers.