youtube image
From YouTube: Auto Batching Microsoft Graph Calls in your SPFx solutions

Description

In this 14-minute developer-focused demo, Marcin Wojciechowski suggests auto-batching Microsoft Graph requests in SPFx and especially in Adaptive Cards scenarios where throttling may be an issue with many consecutive requests, is both simple and more efficient. In this scenario, Marcin uses an interface IHttp Client. See how he queues up and sends batched requests. Thorough code walk-through including logic to test batch requests. Hear his rationale behind using AadHttpClient instead of MSGraphClient. This PnP Community demo is taken from the Viva Connections & SharePoint Framework Bi-weekly sync call recorded on May 5, 2022.

Demo Presenter
• Marcin Wojciechowski (Valo) | @mgwojciech

Supporting materials
• Sample - Graph auto batching | https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-graph-auto-batching

Learn more
• Microsoft 365 Unified Sample gallery - https://aka.ms/m365/samples
• Microsoft 365 Platform Community in YouTube - https://aka.ms/m365/videos
• Microsoft 365 Platform Community - http://aka.ms/m365pnp