Re: CoreData local and on server sync
Re: CoreData local and on server sync
- Subject: Re: CoreData local and on server sync
- From: Chris Hanson <email@hidden>
- Date: Sat, 21 Jun 2008 19:24:14 -0700
On Jun 21, 2008, at 3:18 PM, Jens Alfke wrote:
Of course you can write your own code that takes a local CoreData
store and a remote database server, and compares and syncs the data;
but you're on your own in building that. You'll need a 3rd party
library to even talk to the server.
In this day and age, I'd be more likely to write a simple server-side
app that allows the user to interact with the data via a REST API
using XML or JSON. WebObjects, Ruby on Rails, etc. make this fairly
straightforward. (I think there are plug-ins for Rails that let you
do this pretty much out of the box, atop ActiveRecord.)
That way you can keep all SQL etc. on the server, and out of the Cocoa
application. You also don't have to maintain a constant connection to
the server, potentially improving scalability.
At that point, it becomes a matter of implementing one of the standard
data synchronization algorithms in the desktop application.
-- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden