Best practices with the Graph API
If you are using the Graph API in your scenario, you must follow some best practices so that you don’t encounter performance issues, making your applications more reliable. In this section, we will talk about a few of them.
Pagination
You may have scenarios that require a Microsoft Graph API call to return multiple pages of data when you issue a query that may require pagination. This could happen either due to server-side paging or the query using the $top
query parameter (client-driven pagination) to restrict the number of returned records.
You can review the following link for more details on understanding how you can manage pagination:
https://docs.microsoft.com/en-us/graph/paging
Batching
With batching, you can optimize queries to MS Graph by combining multiple requests into a single request. Batching reduces network latency significantly and consumes lower bandwidth.
You can review the following link for more details...