Selecting a Conflict Resolution Strategy for Two Way Data Synchronization in Applications with Offline Mode

Shaohan Guo

Abstract


The paper addresses the selection of a conflict resolution strategy for two-way data synchronization between several client devices and a shared server when the client is allowed to operate offline. A probabilistic model of conflict occurrence is proposed; it relates edit intensity, the number of replicas, database size and the length of the divergence window. The model yields a relation showing that the product of conflict rate and synchronization metadata volume does not depend on the chosen versioning granularity: splitting a record into fields reduces conflict rate exactly as much as it increases metadata volume. The practical consequence is that shortening the divergence window provides the same gain as finer granularity while adding neither metadata nor storage; its price is a larger number of synchronization sessions. Five strategies are compared against eight criteria, including clock skew tolerance and metadata growth. A selection procedure is given as a sequence of verifiable conditions, together with a checklist of implementation control points.

Full Text:

PDF (Russian)

References


Van Steen M., Tanenbaum A. S. Distributed Systems. – 4th ed. – Leiden: Maarten van Steen, 2023. – 604 p.

Kleppmann M. Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems. – Sebastopol: O'Reilly Media, 2017. – 616 p.

RFC 9110. HTTP Semantics / R. Fielding, M. Nottingham, J. Reschke. – Internet Engineering Task Force, June 2022. – URL: https://www.rfc-editor.org/rfc/rfc9110 (accessed: 07.09.2026).

Kleppmann M., Wiggins A., van Hardenberg P., McGranaghan M. Local-first software: you own your data, in spite of the cloud // Proceedings of the 2019 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software (Onward! 2019). – New York: ACM, 2019. – P. 154–178.

GOST R 59853–2021. Informacionnye tekhnologii. Kompleks standartov na avtomatizirovannye sistemy. Avtomatizirovannye sistemy. Terminy i opredeleniya. – M.: Rossijskij institut standartizacii, 2021. – 28 s. (In Russ.)

GOST R 59793–2021. Informacionnye tekhnologii. Kompleks standartov na avtomatizirovannye sistemy. Avtomatizirovannye sistemy. Stadii sozdaniya. – M.: Rossijskij institut standartizacii, 2021. – 12 s. (In Russ.)

ISO 8601-1:2019. Date and time – Representations for information interchange – Part 1: Basic rules. – Geneva: International Organization for Standardization, 2019. – 33 p.

RFC 9457. Problem Details for HTTP APIs / M. Nottingham, E. Wilde, S. Dalal. – Internet Engineering Task Force, July 2023. – URL: https://www.rfc-editor.org/rfc/rfc9457 (accessed: 07.09.2026).

RFC 9562. Universally Unique IDentifiers (UUIDs) / K. Davis, B. Peabody, P. Leach. – Internet Engineering Task Force, May 2024. – URL: https://www.rfc-editor.org/rfc/rfc9562 (accessed: 07.09.2026).

RFC 7396. JSON Merge Patch / P. Hoffman, J. Snell. – Internet Engineering Task Force, October 2014. – URL: https://www.rfc-editor.org/rfc/rfc7396 (accessed: 07.09.2026).

RFC 8259. The JavaScript Object Notation (JSON) Data Interchange Format / T. Bray. – Internet Engineering Task Force, December 2017. – URL: https://www.rfc-editor.org/rfc/rfc8259 (accessed: 07.09.2026).

PostgreSQL 17 Documentation. Chapter 13. Concurrency Control. – The PostgreSQL Global Development Group, 2025. – URL: https://www.postgresql.org/docs/17/mvcc.html (accessed: 07.09.2026).

Petrov A. Database Internals: A Deep Dive into How Distributed Data Systems Work. – Sebastopol: O'Reilly Media, 2019. – 373 p.

GOST R ISO/IEC 25010–2015. Informacionnye tekhnologii. Sistemnaya i programmnaya inzheneriya. Trebovaniya i ocenka kachestva sistem i programmnogo obespecheniya (SQuaRE). Modeli kachestva sistem i programmnykh produktov. – M.: Standartinform, 2015. – 36 s. (In Russ.)

Shapiro M., Preguiça N., Baquero C., Zawirski M. Conflict-free Replicated Data Types // Stabilization, Safety, and Security of Distributed Systems (SSS 2011). – Lecture Notes in Computer Science, vol. 6976. – Berlin, Heidelberg: Springer, 2011. – P. 386–400.

Kulkarni S. S., Demirbas M., Madappa D., Avva B., Leone M. Logical Physical Clocks // Principles of Distributed Systems (OPODIS 2014). – Lecture Notes in Computer Science, vol. 8878. – Cham: Springer, 2014. – P. 17–32.


Refbacks

  • There are currently no refbacks.


Abava  Кибербезопасность ИТ-КОНГРЕСС ВМК МГУ 2026 СНЭ

ISSN: 2307-8162