Most apps are not isolated instances, but are members or a larger system which includes endpoints or APIs to work with. The ultimate question is, which data source is correct, the local store or the external end point? This video discusses concepts including what the 'system of record' or 'source of truth' of your app could be.
- [Narrator] So let's talk about system of record,…or S-O-R, or SOR.…What it really means is just how your app…interfaces with external databases and APIs.…But before we get too far let's talk semantics.…I've heard the term system of record, source of truth,…and when talking about all of these…the question is who ultimately has…the correct version of the data?…So most likely you have an app…where you sync the data with a web server…and it uses some sort of API endpoints.…
There's a couple questions that you probably have to ask,…like who is correct if there are errors…in saving these changes,…The web server or the app?…This type of topic can be pretty complex,…and the implementations can be even more complex.…When there are issues you need someone, a source of truth,…to represent the correct state of your database.…So you have a general idea of what the source of truth is,…but let me give you a couple reasons…why you would really care about it.…
First, depending on who your source of truth is…you'll know how to resolve merge conflicts.…
This course is meant for the enterprise developer who wants to get up to speed with the latest methods with Core Data. Instructor Jon Bott starts with a review of the basics, explaining the different architectural data models currently in use, the issues that can arise from these different models, and how the latest changes in Core Data 2016 simplify these models. He wraps up with hands-on migration to the new APIs and further tips on leveraging them in iOS 10 and macOS 10.12 apps.
- Fetching data
- Working with objects, queues, and threads
- Understanding the architectural models
- Managing local and server-side data
- Understanding iOS 10 and macOS 10.12 updates to Core Data
- Migrating to the new core data