Planning Microsoft Graph delta-query synchronisation
Design how an application follows Microsoft Graph changes and recovers its synchronisation state.
Choose the data and ownership
Agree which supported Microsoft Graph resource the application needs, why it needs a local copy and who owns its permissions and monitoring. Check the resource-specific documentation: delta support and behaviour are not identical for every resource.
Follow the complete change session
Microsoft describes delta query as a pull mechanism. Follow each returned next link until the response supplies a delta link, even if a page is empty. Store the resulting state securely and use it for the next change session rather than reconstructing the token.
Plan for deletions and recovery
Define how changes and deletions affect the local record, and what staff see while synchronisation is delayed. Microsoft notes that state tokens have a limited lifetime; plan how to rebuild or reconcile the local copy when a token is no longer usable, following the resource-specific documentation.
Test without live business data
Use fictional records and mocked Graph responses to test multiple pages, an empty page, a deletion and an unusable token. Check that a failure partway through does not silently lose updates and that logs do not expose tokens or unnecessary personal information.