Re:How does iCloud work? Plus a new version of Cirrus – The ...
by bobbylarrybobby on Saturday July 22, 2023 @10:47PM
(#36832128)
In fairness don't you always have to prepare for your user’s device to be unable to sync with the cloud? I wonder if apple imposed this limitation just to force developers to consider it even in the best of conditions.
Re:How does iCloud work? Plus a new version of Cirrus – The ...
by ShadowBanThis01 on Saturday July 22, 2023 @10:57PM
(#36832184)
To your point, yes. But the somewhat hypocritical thing is that Apple says don't use iCloud for things that need to be timely, but then gives examples that absolutely require timeliness. For example, the user is watching or reading something on one device and then seamlessly picks up at the same point on another one.
It's not so much that you have to prepare for network problems; it's that Apple doesn't tell you if the local key/value store EVER synced. If it synced but there was no difference between the local and remote store, you don't even get confirmation that yep, we're all good to go.
At least that's how it was the last time I used it.
Re:How does iCloud work? Plus a new version of Cirrus – The ...
by ladon86 on Saturday July 22, 2023 @11:13PM
(#36832265)
That was 12 years ago! But you're spot on, because they barely changed anything in those 12 years and everyone rolled their own solutions.
This year, they've _finally_ introduced a higher-level API that does what you're describing, but it's still in beta: https://developer.apple.com/documentation/cloudkit/cksynceng...
Re:How does iCloud work? Plus a new version of Cirrus – The ...
by ShadowBanThis01 on Sunday July 23, 2023 @03:48AM
(#36833381)
Oh man, that's unfortunate. But thanks for the info! I appreciate the link.
Re:How does iCloud work? Plus a new version of Cirrus – The ...
by bobbylarrybobby on Saturday July 22, 2023 @11:45PM
(#36832385)
Oh... that's bad
Re:How does iCloud work? Plus a new version of Cirrus – The ...
by jjtheblunt on Sunday July 23, 2023 @12:07AM
(#36832477)
Perhaps this issue motivated the acquisition of foundationdb.
Re:How does iCloud work? Plus a new version of Cirrus – The ...
by astrange on Sunday July 23, 2023 @12:11AM
(#36832499)
You basically shouldn't use the key value store. Besides this, it also has a very low size limit. Use CloudKit instead.
Re:How does iCloud work? Plus a new version of Cirrus – The ...
by ShadowBanThis01 on Sunday July 23, 2023 @03:54AM
(#36833405)
Thanks. I figured they'd just folded the original functionality into CloudKit. How does it differ in this regard?
Re:How does iCloud work? Plus a new version of Cirrus – The ...
by astrange on Sunday July 23, 2023 @04:56PM
(#36839750)
I mean, it's completely different, so it has none of the same problems. It might have different problems of course.
Ironically FoundationDB is a key-value store internally, but you don't get access to that.
Therefore, if your application depended on it, you had to figure out some way to operate for an unknown amount of time and then reconcile its state if you unexpectedly heard back from iCloud five minutes or an hour after the user did a bunch of stuff in your app.
I'm curious as to whether this has been improved since then (circa 2011).