Core Data persistent object located on Amazon S3?
I am curious if my persistent object of Core Data can be stored and retrieved using Amazon S3.
I think it is a perfect combination to put your application on the cloud.
Or Amazon has other services?
Has anyone had any success stories to share?
Edited:
I know that there is no direct support of Core Data for S3, but there is ASIS3Request available to save and load any object on S3.
My solution: 开发者_如何学编程in the app delegate, I will modify the persistentStoreCoordinator to save on Amazon S3.
Sounds like a terrible idea to me. The performance would be abysmal since you are taking something that is inherently designed to be a local cache and moving it up into the cloud.
You are far better off having a local cache and then periodically storing a copy of the file up in the cloud.
What is your goal behind storing the data on S3?
Though there's no direct Core Data support for Amazon S3 as a store type, Core Data allows Custom Store Types. This fact is referenced in the iPhone Core Data docs, so I assume it's available on the iPhone platform.
精彩评论