There’s a paper circulating online that explains on a deep technical level how CloudKit, the backend of modern iCloud, works. It’s insightful, albeit mostly way over my head.