Share via

Caching service URL for bot framework

Anand KS 46 Reputation points
2021-08-31T06:36:06.7+00:00

Hi everyone,

I'm currently build a teams app , with bot capabilities. As you would already know , to setup pro-active messaging one needs to cache the service URL needed by bot framework. I read about how to cache it , and came to know that there are 2 main things to consider:

  • The channel / end-user app that is being used (In this case MS Teams).
  • The region the tenant organisation belongs to.

Since the bot is specific to MS Teams only , the base part of the Service URL is going to remain constant which is https://smba.trafficmanager.net/ . The region part of the URL would change depending on the tenant organisation.

My question being , are my assumptions right ? That the service URL should be cached on the tenant level and not on individual user's level. Even if the tenant organisation is present worldwide they're going to have the same service URL right ?

Thanks in advance for answering the question.

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.