On Wed, Mar 4, 2009 at 9:47 PM, Lee Mighdoll <[email protected]> wrote:
> I've been thinking about browser-server data sync for use in my next > project. Sync is potentially more interesting than RPC style ajax, > especially for rich clients, and I think sync could be a grand thing to add > to lift. > > The basic idea is like this. A javascript client subscribes to a set of > syncable objects. The objects are then mirrored on the client and the > server. Modify a syncable object on the server and the changes are pushed > via comet to the client. Modify a syncable object in javascript, and the > changes propagate to the server. > > I've did some sketches on the javascript side, and I think it'll be a nice > fit there. Saving changes made on the browser becomes more transparent in > the same way that ORM/JDO makes persisting to a db simpler. And rich > clients can reuse change notification rather than creating custom ajax > endpoints for server push. > > Adobe has a Data Management > Service<http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=data_manage_4.html>on > this theme. I'm not sure what the closest thing in the java world would > be. > > Perhaps browser sync would fit in lift as an alternate backend to > record/mapper? I think what you describe fits within the confines of what I think of when I think of the NG record stuff. Record is about describing the structure and relationships of domain objects that can then be persisted, migrated, collected, input, output, etc. The record stuff is a lot about the input and validation rules and a whole lot less about RDBMS. Moving Scala objects to/from JSON format and being able to move those objects around the Network (with a big N), in and out of processes, with version numbers, is super-important. The version number thingy becomes valuable to you because it allows you to synchronize only the objects that have changed (based on version) in one store or the other. > > > Lee > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
