Large scale Merge Replication strategy - what can go wrong?

Posted by niidto on Stack Overflow See other posts from Stack Overflow or by niidto
Published on 2010-01-06T16:00:23Z Indexed on 2010/05/01 19:57 UTC
Read the original article Hit count: 214

Hi, I'm developing a piece of software that uses Merge Replication and SQL Compact on Windows Mobile 6. At the moment it is running on 5 devices reasonably well.

The issues I've come up against are as follows:

  • The schema has had to change a lot, and will continue to have to change as the application evolves. There have been various errors replicating these schema changes down to the device, uploads failing due to schema inconsistencies.

  • Subscriptions expiring (after 14 days) and unable to reinitialize with upload - AKA, potential data los of unsynced data up to that point.

Basically, the worst case scenario is data loss, and when merge replication fails, there seems to be no way back to get the data off. My method until now has been to drop and create the subscription on the device. I don't hear many people doing this, though it seems to solve everything.

The long term plan is to role this out to 500+ devices. Any advice on people who have undertaken similar projects, and how to minimise data loss and make it so that there's appropriate error handling code to recover from sync failures would be much appreciated.

James

© Stack Overflow or respective owner

Related posts about replication

Related posts about windows-mobile