question

MandeepSingh-2395 avatar image
1 Vote"
MandeepSingh-2395 asked MandeepSingh-2395 commented

Web App Integration with MS Teams- How to handle throttling?

Hello! We have been working to integrate a web service with MS Teams. The general requirement is that our web service will send 1:1 messages in an organisation to multiple users at once, on the behalf of logged in user(admin).

We have selected Graph API to build a solution for the same. However, we came across the throttling limit for Teams. For a POST request for 1:1 message, it is only 2 rps per tenant. However, the service will send messages to around 1000s users at a given time. This will be a repetitive process but with different yet overlapping list of users. This is the reason we can't use group chat/channels, since there will then be possibly hundreds of redundant channels a user will have to deal with within a week.

Therefore, is there a way to send 1:1 messages concurrently to ~100s users at a time. If we combine requests using JSON batching, will the limit(i.e., 2 requests per sec) still apply? Can the throttling limit for Teams be increased using a paid plan? If not, what is the most feasible solution to achieve the objective?(a bot?)


office-teams-app-devmicrosoft-graph-teamwork
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sridevi-MSFT avatar image
1 Vote"
Sridevi-MSFT answered

You can optimize your throttling effect by using rate limiting . Could you please check this documentation.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sridevi-MSFT avatar image
0 Votes"
Sridevi-MSFT answered MandeepSingh-2395 commented

@Mandeep Singh - Could you please confirm does that help clarify?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, that clarifies. Although this doesn't solve the problem as 2 RPS is a meagre limit, I may have to use a bot instead.

0 Votes 0 ·