• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreData local and on server sync
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CoreData local and on server sync (From: RenĂ© v Amerongen <email@hidden>)
 >Re: CoreData local and on server sync (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: CoreData local and on server sync
  • Next by Date: Re: How to hide the divider in a collapsed NSSplitView pane
  • Previous by thread: Re: CoreData local and on server sync
  • Next by thread: Re: CoreData local and on server sync
  • Index(es):
    • Date
    • Thread