Send 4 reqeusts at the same time, but still get "Application is over its MailboxConcurrency limit."

Alex Kang 0 Reputation points
2024-04-25T02:09:46.36+00:00

Hi,

I am developing an application that can create and delete appointments in a calendar. I have read through the Graph throttling-limits documentation and understand that only 4 concurrent requests can be sent. Therefore, I created 4 threads to send out the requests. However, I am still receiving a 'TooManyRequests' error. I am also using JSON batching to reduce my requests, but it hasn't helped.

Finally, I found someone who said, 'Outlook resources, such as mail and calendar, can only handle four requests targeting the same mailbox.' If this is true, how long should I wait before sending another request to the same mailbox?

Thanks.

Outlook
Outlook
A family of Microsoft email and calendar products.
3,818 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,005 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,896 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CharanyaB-MSFT 1,891 Reputation points Microsoft Vendor
    2024-05-28T19:37:44.9466667+00:00

    Hello @Alex Kang,

    Thanks for reaching Microsoft!

    Microsoft Graph dispatches up to four individual requests from a batch to the Outlook service simultaneously, irrespective of the target mailboxes for those requests. The Outlook service can execute these requests in parallel at any point, also irrespective of the target mailbox. Since Microsoft Graph only allows up to four parallel requests, the execution of that batch remains within Outlook's concurrency limits for the same mailbox.

    Refer the below link for limits to use for outlook resources in Json batching: https://video2.skills-academy.com/en-us/graph/throttling-limits#outlook-service-limits-for-json-batching

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

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