In my company we're working on a messaging app, that we hope will have a large number of users, we are developing mobile apps that are going to be re-saving all our messages in their local databases, to handle offline state.
We need to validate, that the approach we're taking will scale and produce a great user experience, so:
What is the most performant way we can try to keep our local and remote databases in sync?