Learn about the benefits of Azure Mobile Services' offline data sync and its components and commands.
- [Instructor] Offline data sync enables the user of your mobile app to use the app even when a data connection is unavailable. Changes and additions are stored in the local store of the device. When a data connection is available, the app will then sync data to and from that device. There are several benefits to using the offline data sync in your Azure Mobile Apps. These benefits include, obviously, a data connection is not required for your app to run. Offline data sync will also allow you to sync across multiple devices.
This improves the performance of the app itself because it doesn't always have to go out to fetch information. And finally, you can limit network use on metered connections. There are three components required for the offline data sync, and these include a sync table, which syncs will the local store, the local store, which holds the data on the local device, and finally, the sync context, which tracks the changes made to the sync tables. Now let's quickly look at the workflow.
First we have a push command, which sends all the CUD changes since the last push, and these include changes, updates, and deletes. Next we have the pull option, and just as it sounds, this pulls all the data to the local store. Next we have implicit pushes, and these are used when a pull is pending but a push is executed first. This minimizes the conflicts between changes already queued and any new data.
And finally we have purging, and you'd use a purge to clear the local store table. And you would do this if the data was stale or if you had to discard all pending changes. Each device platform will require a specific configuration for offline data sync, so please refer to the Azure documentation for your specific device to configure this feature.
Learn the intermediate-level skills needed to design Azure web and mobile apps for any organization, using the Azure Web Apps and Mobile Apps services. Instructor Sharon Bennett, a Microsoft Certified Solutions Expert, covers securing mobile and web apps with Azure Active Directory, creating WebJobs to script tasks such as queue processing and file maintenance, and extending mobile apps with custom code. Plus, learn how to update, back up, and restore your Azure apps.
As an intermediate-level course, an existing understanding of the Azure platform is required. After completing the training, IT professionals will also be better prepared for Azure certification.
- Create Azure web apps
- Create WebJobs
- Using Traffic Manager
- Adding a CDN to web apps
- Updating, backing up, and restoring Azure Web Apps
- Deploying Azure mobile apps