Skip to content

Commit 58e554e

Browse files
authored
Merge pull request #9432 from ejazhussain/patch-1
Update batch-requests.md
2 parents c74072b + bf08dcf commit 58e554e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

concepts/sdks/batch-requests.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ The Microsoft Graph SDKs provide three classes to work with batch requests and r
2222
- **BatchRequestContent** - Simplifies creating the batch request payload. It contains multiple **BatchRequestStep** objects.
2323
- **BatchResponseContent** - Simplifies parsing the response from a batch request. It provides the ability to get all responses, get a specific response by ID, and get the `@odata.nextLink` property if present.
2424

25+
### Automatic batching for request limits
26+
27+
The Microsoft Graph SDK automatically handles batching requests with respect to the limit of 20 requests per batch. This means that if your code exceeds this limit, the SDK will split the requests into separate batches behind the scenes, ensuring that each batch complies with the limitation. You no longer need to manually implement logic to handle this batching limit, which makes your code cleaner and easier to manage.
28+
2529
## Simple batching example
2630

2731
This example shows how to send multiple requests in a batch that are not dependent on each other. The requests can be run by the service in any order. This example gets the user and gets the user's calendar view for the current day.
@@ -76,3 +80,6 @@ This example shows how to send multiple requests in a batch that are dependent o
7680
:::code language="typescript" source="./snippets/typescript/src/snippets/batchRequests.ts" id="DependentBatchSnippet":::
7781

7882
---
83+
84+
85+

0 commit comments

Comments
 (0)