views:

126

answers:

1

Are there any best practices for syncing hierarchical domain objects between client with modular structure (WPF,PRISM,MVVM) and server(WCF service and NHibernate for persistence in DB)?

Already have DTO objects for transport and separate module for server requests with callback management infrastructure.

Thanks in advance=)
Alexey

+3  A: 

You may want to take a look at the Microsoft Sync Framework.

Although its main implementation seems to focus on ADO.NET and syncronization of relational data, the Sync Framework supports syncronization of any type of object, including your own custom objects.

You can also choose the protocol over which you want to syncronize, so if you'd like to use e.g. WCF, it will work too.

It does, however, require som work or your behalf.

Mark Seemann
Interesting thing. Can it handle realtime replication? for example another user changed something on server and all other joined users will se it immediatly? Or user creates device, request is sent to server, if everything is ok, response message is sent to client that it is ok and operation is successful? Lots of info on framework and reading docs atm=) Thanks=)
Alexey Anufriyev
Synchronization is initiated by a client, but can go both ways. If you set up the client so that it synchronizes very often, you may get close to an illusion of what you are asking for, but possibly at the cost of high network traffic.
Mark Seemann
Nice.... I need to read more about this. Interesting stuff.
Anderson Imes