Share via

Regarding Batching response order

Nabeel Idrees 20 Reputation points Microsoft Employee
2024-02-14T17:20:59.87+00:00

When "dependsOn" parameter is used in the request payload for a BATCHING call does that mean that the response that is returned back from the batch call is in the right order?

Reference:https://learn.microsoft.com/en-us/graph/json-batching#:~:text=Responses%20to%20the%20batched%20requests%20might%20appear%20in%20a%20different%20order.%20The%20id%20property%20can%20be%20used%20to%20correlate%20individual%20requests%20and%20responses.

Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

CharanyaB-MSFT 1,896 Reputation points
2024-02-14T20:43:50.65+00:00

Hello Nabeel Idrees,

Thanks for reaching Microsoft!

The "dependsOn" parameter specifies the dependencies between requests within the batch. It only ensures that a particular request executes only after its dependent request(s) have completed successfully. Batch should be either fully sequential or fully parallel.

However, the order of execution and the order of responses are not synchronized. The responses can arrive in any order. The id property can be used to correlate individual requests and responses.

Document: https://learn.microsoft.com/en-us/graph/json-batching#:%7E:text=Responses%20to%20the%20batched%20requests%20might%20appear%20in%20a%20different%20order.%20The%20id%20property%20can%20be%20used%20to%20correlate%20individual%20requests%20and%20responses.

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

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

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.