Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

CloudKit

701 views

Published on

Talk given at NYC iOS Meetup

Published in: Technology
  • Be the first to comment

CloudKit

  1. 1. CloudKit Intro NYC iOS Meetup, 9/3/14
  2. 2. About me Arun Nagarajan (@entaq) Currently Founding Engineer, funded stealth startup in NYC We are hiring! Email me at arun@isapp.com Previously 2 yrs at Google - Tech Lead, Developer Platform 9 yrs at Verivo Software (Boston) - VP of Architecture
  3. 3. What is it? ● New Cloud API that provides backend to app ● Other “iCloud” options ○ iCloud Core Data ○ iCloud Documents/Drive ○ iCloud Key Value Store ● Transport technology ○ And not a local persistence layer ● 400 million iCloud accounts ● Apple used it to build iCloud Drive & Photos
  4. 4. Key entities ● Containers ● Databases ● Records ● Record Zones ● Record Identifiers ● References ● Assets
  5. 5. Enabling CloudKit
  6. 6. Some favorite features
  7. 7. User Discovery ● User Record ID - unique per app/per user ● Email address if user opts in ● Scan address book for other contacts ○ You never get address book ● One new permission dialog
  8. 8. Salient points ● Error handling is key ● NSOperation based API ○ And a convenience API ● Subscriptions/Push notification is solid ● Querying based on NSPredicates ○ Location based queries ● Dashboard ○ https://icloud.developer.apple.com/dashboard/
  9. 9. Is it ready? ● For now, Apple only (iOS and Mac) ● Some server unavailable errors ● No way to run server side code ● Plenty of other options! ○ Hard to port over for the most part
  10. 10. Some troubles
  11. 11. Cost model ● Public database quota for developer ● Private database quota for users
  12. 12. Costs Storage - 5gb for assets, 50mb for DB Transfer - 25mb/day assets, 250kb/day DB For every user, you get Storage - 100mb for assets, 1mb for DB Transfer - 500kb/day assets, 5kb/day DB
  13. 13. Sample costs 10k users Storage - 1tb for assets, 10gb for DB Transfer - 5gb/day assets, 50mb/day for DB 100k users Storage - 10tb for assets, 100gb for DB Transfer - 50gb/day assets, 500mb/day for DB
  14. 14. Thanks Questions? Arun Nagarajan arun@isapp.com

×