Nyskra Knowledge / Synchronization

Data Synchronization

Data synchronization keeps information consistent across devices and people. Learn how offline changes, concurrent edits, conflict resolution, and secure replication work together.

Definition

Data synchronization is the process of exchanging and reconciling information or changes between copies of data so that authorized devices, applications, or users can maintain an appropriately consistent view over time.

Also known as: Data sync, Synchronization, Data syncing

On this page

You add a personal record on your phone. Later, you open the same app on your laptop and expect the information to be there. Perhaps you also share selected records with someone you trust, who makes an update on another device. None of you should have to copy files manually or worry about which device has the correct version.

Data synchronization connects these independently used copies of information. It allows changes made in one place to become available in another, while preserving the meaning of those changes when devices and people work at different times.

A good synchronization system should feel almost invisible. Making it dependable, however, requires carefully solving problems involving replication, intermittent connectivity, concurrent edits, authorization, and data integrity.

What does data synchronization actually do?

Synchronization is often described as keeping data “up to date.” That is a useful result, but it hides an important distinction: synchronization is not necessarily a process of copying one complete database over another.

A system may maintain several copies, often called replicas. Each replica represents some portion of the application’s data. Synchronization can exchange complete states, individual records, or recorded changes, depending on how the system is designed.

A common change-based workflow looks like this:

  1. Make a local change. A user edits information on a device, and the application records that change locally.
  2. Preserve the change until it can be transferred. The device may be online immediately, temporarily disconnected, or offline for days.
  3. Exchange updates. Devices communicate directly or through a service that stores and forwards changes.
  4. Validate and integrate updates. Receiving replicas determine which updates are new, whether they are authorized and valid, and how they affect local state.
  5. Continue from the resulting state. Devices can make further changes independently, even before every other replica has caught up.

Not every synchronization system uses this exact workflow. Some depend on a server-authoritative database; others allow independently writable replicas. The defining purpose is to reconcile information across participants, not to enforce one particular network topology.

Synchronization also does not mean every copy is identical at every instant. Updates take time to travel. A disconnected device cannot receive a change it has not yet been sent. In many distributed systems, replicas may temporarily differ and converge as valid updates are exchanged and applied, assuming communication resumes and the reconciliation rules are correct.

Multi-Device Synchronization

Definition

Multi-device synchronization keeps a person's data coordinated across two or more authorized devices by transferring and integrating changes between their copies, even when those devices are not connected at the same time.

Also known as: Cross-device synchronization, Device synchronization

A personal application often exists on more than one device: a phone, a tablet, and perhaps a laptop. Multi-device synchronization lets the same person work with authorized copies of their information without manually moving files between those devices.

Imagine adding a note on your phone while traveling. Your laptop remains at home, disconnected. When both devices are available to the synchronization service, the new note can reach the laptop. Later, a correction made on the laptop can travel back to the phone.

For this to be reliable, the system needs more than an upload button:

  • Device identity and access: Only authorized devices should receive private information or the cryptographic keys needed to decrypt it.
  • Change tracking: A device must recognize which changes it has already received and which are still missing.
  • Reliable retries: Temporary connection failures should not make a change disappear or cause the same logical update to be applied repeatedly.
  • Local persistence: Work created on one device must survive until the system has safely preserved and exchanged it.
  • Recovery: A new or replaced device needs an authorized way to obtain the information it is entitled to access.

Different systems provide different guarantees about timing and completeness. Multi-device synchronization describes the capability to coordinate data across devices, not a promise that every device is simultaneously reachable or always has the newest information.

Multi-User Synchronization

Definition

Multi-user synchronization coordinates changes made by multiple authorized people to shared information, while accounting for their separate devices, permissions, and potentially concurrent updates.

Also known as: Collaborative synchronization, Shared-data synchronization

Multi-user synchronization adds a second dimension: different people can independently change information they are allowed to share.

Consider two people maintaining a shared packing list. One adds an item while the other removes an outdated entry. Both devices may be offline, so neither person knows about the other’s change when making their own.

The system must eventually bring these updates together without exposing unrelated personal information. In particular, it needs to account for:

  • Shared scope: A participant may have access to one group or collection, not another person’s entire database.
  • Authorization: Being able to synchronize with a service does not automatically entitle someone to read or modify every shared item.
  • Concurrent changes: Participants can edit different or overlapping parts of shared state at the same time.
  • Membership changes: When a person is added or removed, the system must control who receives future protected information and associated cryptographic keys.
  • Independent devices: Each participant may use several devices, which can themselves be online or offline at different times.

In an end-to-end encrypted system, secure sharing requires more than server-side permission checks. Authorized participants must obtain the relevant decryption keys, while the server must remain unable to grant itself access to protected content. This is why key rotation and a zero-access architecture become important when shared groups change.

Offline Synchronization

Definition

Offline synchronization is the reconciliation of changes created while a device was disconnected after communication becomes available again, without requiring the device to have been online when those changes were made.

Also known as: Offline data synchronization, Offline sync

Offline synchronization allows useful work to happen before any network exchange is possible.

Suppose you edit a journal entry on a train with no signal. Your app saves that edit to its local data. On another device, you make a different change during the same period. When connectivity returns, the system exchanges the pending updates and integrates them with the copies that are already there.

This is especially important for local-first software, in which the device is an independently usable place to work rather than merely a temporary interface to a remote database.

An offline-capable synchronization design must handle interrupted uploads, repeated requests, devices reconnecting out of order, and changes arriving later than expected. It must also avoid confusing a missing network acknowledgment with proof that an update never arrived.

Working offline and synchronizing later are separate capabilities. An app may allow offline edits yet fail to merge them correctly after reconnection. Conversely, a synchronization service can work perfectly whenever connected but provide no useful offline editing experience.

Why can replicas disagree?

Independent replicas are powerful precisely because they do not have to coordinate every operation in advance. That independence also means different copies may evolve along different paths.

One device might receive an update before another. Two people may change the same item while both are offline. A packet may be delivered twice after a retry. A server may temporarily be unavailable. None of these situations means the encryption is broken or that an application must lose someone’s work.

But a sound system needs to distinguish ordinary delivery differences, which can often be reconciled automatically, from conflicting user intentions, which may demand explicit application rules.

Synchronization Conflicts

Definition

Synchronization conflicts arise when separate copies of data have been changed independently in ways that cannot be combined correctly by simply applying every update without additional rules or decisions.

Also known as: Sync conflicts, Concurrent update conflicts

A synchronization conflict occurs when independently produced changes cannot be combined correctly without deciding what those changes mean together.

For example, imagine that two devices begin with the same reminder:

  • Device A changes its title to “Call on Friday.”
  • Device B, while offline, changes the same title to “Call on Monday.”

Both edits can be valid when created. But the final title cannot simply be both values at once unless the application has a way to represent both alternatives.

Contrast that with one device changing the title while another adds an unrelated note. Depending on the data model, these changes may be combined without losing either.

A conflict is therefore not necessarily a software error. It can be the natural result of two legitimate updates made without knowledge of each other. Merely ordering changes by the time a server receives them does not reveal which result the users intended.

Conflict Resolution

Definition

Conflict resolution is the process of determining how independently made or incompatible changes should be combined, preserved, prioritized, or presented for a decision when synchronizing copies of data.

Also known as: Synchronization conflict resolution, Data conflict resolution

Conflict resolution determines how a synchronization system handles changes that interact or disagree.

Different data types and user intentions call for different approaches:

  • Combine independent changes. Updates to separate fields or objects may be integrated together when their meanings do not interfere.
  • Apply explicit application rules. Some operations have meaningful domain-specific behavior, such as adding distinct entries to a list or recording separate observations.
  • Preserve alternatives. If two versions cannot safely be merged, the system can retain both or ask the user to choose.
  • Choose a deterministic winner. Strategies such as last-write-wins can produce a single result, but may silently discard a valid concurrent edit if used without care.

Distributed systems research provides tools for particular classes of conflicts. Conflict-free Replicated Data Types (CRDTs) are one family of data structures designed so that independently updated replicas can converge under specified conditions. They can resolve many structural conflicts automatically, but they do not decide every question of human intent. Two different appointments being assigned to the same time slot may be a meaningful conflict even if the underlying records merge cleanly.

The real goal is not to make the word conflict disappear. It is to preserve intended information and reach a correct, understandable state without forcing users to handle unnecessary technical details.

How does end-to-end encryption change synchronization?

Many conventional synchronization services can inspect stored records in plaintext, compare fields, and perform merges on their servers. That design gives the provider visibility into the information being synchronized.

With end-to-end encryption and client-side encryption, the data’s intended recipients retain control over decryption. A server that cannot read the content also cannot interpret or merge its private fields in the same way a plaintext server can.

This changes where important work must happen. Authorized clients need the appropriate keys to read and interpret changes. They must apply the relevant validation and conflict-handling rules to the data they can decrypt. Servers can still help by storing ciphertext, tracking delivery, or forwarding updates without becoming trusted readers of personal content.

Confidentiality is only part of the challenge. Synchronization must also ensure that changes have not been tampered with and, for shared data, that the claimed authorship and access rights are authentic. Integrity protections, authenticated identities, and key management address problems that encryption alone does not solve.

A compromised server may delay, withhold, or interrupt the exchange of encrypted updates. Protecting their confidentiality and authenticity does not by itself guarantee continuous availability. Those properties belong to different parts of the system’s security model.

Synchronization does not replace recovery

Keeping multiple copies of data can make a system more resilient. If one device fails, another replica may still retain information that the damaged device lost. But the existence of synchronized copies is not automatically the existence of a reliable backup.

An accidental deletion may be a legitimate synchronized operation. A compromised authorized client might generate destructive changes using its valid credentials or keys. An application that eagerly propagates those changes could leave several replicas in the same unwanted state.

That is why synchronization and recovery need distinct safeguards.

For guidance on recovery practices, the EU Agency for Cybersecurity (ENISA) recommends isolated backups and the 3-2-1 backup approach. Our article on ransomware also explains how independently maintained replicas and cryptographic integrity can help recover from a damaged device, subject to the availability of intact data or protected history.

Data synchronization and Nyskra

Nyskra Sync is designed to keep personal information available across a person’s devices without requiring a permanent internet connection. With local-first software, core interactions can happen on the device, and synchronization makes updates available to other authorized devices when connectivity permits.

Privacy is part of that experience rather than an optional setting. All synchronized personal-data payloads are encrypted using XChaCha20-Poly1305, an authenticated encryption with associated data (AEAD) algorithm with 256-bit keys. Together with client-side encryption and a zero-access architecture, this means the synchronization service does not need the ability to read protected personal content. Some routing and operational metadata can still be observable.

Nyskra Sync keeps personal data useful on each device and available across devices after synchronization, while Nyskra Zero protects the confidentiality of private content.

Further reading

For the user experience and architectural principles behind independent local data, see Local-First Software and our blog article Why Local-First Apps Just Feel Better.

Our engineering article Beyond Offline: Building Local-First Apps discusses the challenges of synchronization, collaboration, and private data sharing in more detail.

For foundational research, see Kleppmann, Wiggins, van Hardenberg, and McGranaghan, Local-first software: You own your data, in spite of the cloud (2019), and Shapiro, Preguica, Baquero, and Zawirski, Conflict-free Replicated Data Types (2011).