You record something on your phone during the afternoon and put it away. Hours later, you open the same application on a laptop. The phone is turned off, yet you expect the new information to appear on the laptop almost immediately.
This familiar experience raises an architectural question: how should changes travel between devices that may never be connected at the same time?
Two common approaches are peer-to-peer synchronization, in which devices exchange changes with one another, and centralized synchronization, in which an intermediary receives and distributes updates. Both can be useful. Their trade-offs involve availability, network reachability, operational complexity, privacy, and the time it takes for an update to reach another device.
For private local-first applications, the most important insight is that the system moving updates does not have to be the system interpreting them. A central service can provide dependable, asynchronous delivery while independent client devices retain control over their data and how changes are reconciled.
Transport architecture is not data architecture
It helps to separate two decisions that are often discussed as though they were one:
- Transport architecture: Which computers communicate, where updates are retained between connections, and how they reach another device.
- Data architecture: Where usable data replicas exist, which participants can read them, where application logic runs, and how independently made changes are reconciled.
A centralized transport does not automatically imply a centrally authoritative application database. Similarly, directly connected devices do not automatically form a local-first application. A device might send every action to a peer that owns the authoritative state, or it might maintain a fully independent replica.
This separation matters because end-to-end encryption and zero-access architecture can prevent a central service from inspecting private records even while that service stores and routes their encrypted changes.
The location of network infrastructure and the location of trust in private data are related design choices, but they are not the same design choice.
How does peer-to-peer synchronization work?
Peer-to-Peer Synchronization
Definition
Peer-to-peer synchronization exchanges data or updates between participating devices without requiring a central service to store and distribute every update. Direct transfer requires communicating peers to be reachable, although discovery, relays, or additional persistent peers may assist.
Also known as: P2P synchronization, Peer-to-peer sync
In a peer-to-peer, or P2P, approach, participating devices exchange updates with other participating devices rather than relying on one required server to retain every update. A phone may transfer changes directly to a laptop, or collaborators may exchange changes through connections between their devices.
That design offers meaningful advantages:
- Provider independence: Direct exchange can reduce dependence on a vendor-operated synchronization service.
- Local communication: Devices may be able to exchange updates over a local network, even when the wider internet is unavailable.
- Direct data paths: When a suitable connection exists, updates can travel without passing through a distant intermediary.
- Control over infrastructure: Users or communities may operate their own devices and choose how they connect.
P2P is especially attractive when independence from centralized infrastructure is a major goal, when participants often have directly reachable devices, or when local network communication is important.
However, the simplest form of direct exchange has a practical constraint: both devices must be reachable at the same time for a transfer to take place. A laptop cannot fetch an update from a phone that has already gone offline unless some other reachable participant has retained that update.
Network address translation (NAT), firewalls, intermittent mobile connections, and mobile operating systems’ background-execution restrictions can make establishing and maintaining direct connections more difficult. Discovery servers and relays can help devices find or reach one another, but a relay that only passes traffic along does not necessarily keep an update until an offline device returns.
These are engineering trade-offs, not fundamental weaknesses in peer-to-peer computing. A P2P design can add persistently reachable peers, replicated storage, or other asynchronous delivery mechanisms. Doing so can solve the overlap problem, although it introduces additional infrastructure and responsibilities.
For example, the Syncthing FAQ describes synchronization between machines when they are online at the same time. Its relay documentation separately explains how relays help connect devices that cannot establish a direct connection. A relay’s role is not the same as persistent storage for later retrieval.
How does centralized synchronization work?
Centralized Synchronization
Definition
Centralized synchronization uses a commonly reachable service to receive and distribute changes among client devices, often retaining updates so that devices can upload and retrieve them at different times.
Also known as: Centralized data synchronization, Server-mediated synchronization
A centralized synchronization service provides a commonly reachable destination for participating devices. Instead of connecting directly to every other device, each client can exchange updates with the service.
When the service retains submitted updates, the sending device can disconnect before the receiving device connects. This makes a large difference for ordinary personal applications:
- Multi-device convenience: A phone, tablet, and laptop can synchronize on their own schedules.
- Timely delivery: An update can be ready for an authorized device whenever that device next connects, without waiting for the original sender to return online.
- Mobile reliability: Devices with short background execution windows need not maintain continuous peer connections.
- Shared-data workflows: Multiple authorized people can contribute at different times without coordinating when their devices are awake.
- Simpler connectivity: Clients typically need an outbound connection to an established service rather than direct reachability to each other.
Centralized synchronization also has costs. Somebody must operate the service, protect its availability, manage storage and retention, and prevent unauthorized use. Clients may depend on that infrastructure to exchange new updates with other devices. The service may also observe operational information such as connection times, routing identifiers, and traffic volume.
And in many traditional cloud architectures, centralization goes further than transport. The server also owns the application database, interprets its records, resolves conflicts, and decides which state clients should see. That additional centralization is an architectural choice, not a requirement of server-mediated delivery.
Why does asynchronous delivery matter so much?
Store-and-Forward Synchronization
Definition
Store-and-forward synchronization temporarily or persistently retains submitted updates at an intermediary so that authorized recipients can retrieve them later, without requiring senders and recipients to be online simultaneously.
Also known as: Store-and-forward delivery, Asynchronous synchronization delivery
Consider an ordinary day:
- At 10:00, a user records an entry on a phone and the phone uploads the change.
- At 10:05, the phone loses connectivity or is switched off.
- At 18:00, the user opens the application on a laptop for the first time that day.
- The laptop retrieves the waiting change from the synchronization service.
The devices were not online together, yet the update becomes available. The intermediary effectively separates the time of submission from the time of delivery.
Without a persistent intermediary, a direct peer-to-peer transfer would need a period of overlapping reachability, or another peer already holding the update. A pure forwarding relay cannot deliver something that was never retained while the recipient was offline.
Store-and-forward is therefore a particularly valuable capability for personal software. Users should not need to plan device connectivity around the application, keep a phone awake until a laptop appears, or manually trigger an exchange every time they move between devices.
This does not mean delivery is instantaneous or unconditional. The sender must successfully upload the update; the service must retain it and remain reachable; the recipient must reconnect and be authorized to receive it. Network outages, service failures, authorization changes, and deliberately withheld updates can still delay or prevent delivery.
Peer-to-peer vs. centralized synchronization at a glance
| Design question | Peer-to-peer synchronization | Centralized synchronization with persistent storage |
|---|---|---|
| How do updates travel? | Between participating peers, possibly through discovery or relay infrastructure. | Through a commonly reachable service. |
| Must sender and receiver overlap online? | For pure direct transfer, yes; not if another available peer has retained the update. | No, provided the service has received and retained the update. |
| What happens if the transport infrastructure is unavailable? | Direct or alternative peer paths may still work. | Exchange of new changes through that service is delayed. |
| Who operates the infrastructure? | Individual peers and optional shared services. | A service operator or self-hosted deployment. |
| Does the topology guarantee privacy? | No. Security depends on encryption, identities, endpoints, and protocol design. | No. It can be plaintext-accessible or zero-access, depending on the architecture. |
| Can clients work offline? | Yes, if the application maintains usable local state. | Also yes, if the application maintains usable local state. |
The comparison is not between a good and a bad model. It reveals that network reachability, offline usability, content confidentiality, and ownership of data are separate properties that can be combined in different ways.
Does centralized synchronization require trusting the server with private data?
A conventional cloud service often receives readable records and uses them to implement searching, validation, analytics, and conflict resolution. In that design, users must trust the operator with sensitive information because the server is technically capable of accessing it.
One reason to prefer P2P is to avoid introducing such a central party. But the existence of a central intermediary does not, by itself, give that intermediary the ability to decrypt private content.
With client-side end-to-end encryption, authorized devices encrypt private data before sending it. A properly designed zero-access synchronization service can retain and forward ciphertext without possessing the keys required to recover the underlying records.
In an appropriately designed zero-access system, the provider can deliver encrypted information while the authorized clients retain the decryption keys. This separates the confidentiality of private content from the service’s delivery responsibilities.
This changes the trust relationship significantly. Users no longer need to rely on the service provider’s discretion to keep decryptable private application data confidential, because the service is not given the decryption capability in the first place. This protection depends on authenticated identities, correct key distribution, secure client implementations, and uncompromised authorized endpoints.
There are still responsibilities that encryption does not remove. The intermediary may be able to delay, omit, or selectively deliver updates, cause an outage, or observe certain operational metadata. Authentication can help clients reject forged or modified updates; it does not force a server to make an update available on time. Likewise, a stolen or compromised authorized device falls outside the protection offered by server-side zero access.
A hybrid centralized-distributed architecture
Hybrid Centralized-Distributed Architecture
Definition
A hybrid centralized-distributed architecture combines centralized, persistent transport of encrypted changes with distributed, client-authoritative application state, processing, and reconciliation, so a central service can assist delivery without interpreting private data.
Also known as: Hybrid centralized-distributed synchronization, Centralized transport with distributed data
A hybrid architecture combines some centrally operated services with distributed components. In a personal synchronization system, one possible arrangement is a server that helps deliver encrypted information while independent devices retain locally usable data.
This illustrates a general distinction between coordinating communication and interpreting private application content. A delivery service does not necessarily need decryption keys or access to personal record fields in order to transport ciphertext. However, it may still see operational metadata and remain essential for timely delivery.
Hybrid architectures encompass a broad family of designs with different trade-offs, including availability, scalability, consistency, and trust. Their specific behavior depends on the chosen protocol and implementation.
Availability, timely delivery, and eventual convergence
A useful synchronization architecture must answer three questions that are related but not interchangeable.
Can the application remain usable right now?
For a local-first application, core work happens against a local data replica. Previously available data remains readable, and new changes can be recorded even if the synchronization service is unavailable.
That is local application availability. It is not the same as the availability of the transport service. An offline device can continue working but cannot receive another device’s latest changes until a communication path becomes available.
How quickly can an update reach another device?
A persistent centralized service improves the opportunity for prompt delivery because it does not have to wait for direct overlap between a sending and receiving device. Once a change has been accepted and retained, it can be delivered when the next authorized recipient connects.
Actual delivery time still depends on connectivity, synchronization scheduling, network conditions, device background restrictions, and the availability and behavior of the service. The architectural benefit is removing a major reachability dependency, not guaranteeing real-time delivery under every condition.
Will independent replicas eventually agree?
When devices work offline, they may accept concurrent updates and temporarily expose different states. A transport service can distribute changes, but transmission alone does not determine how their meanings should be combined.
The data layer needs reconciliation rules. In systems built from conflict-free replicated data types (CRDTs), compatible updates can be integrated so replicas reach equivalent logical states under the relevant delivery and merge assumptions.
That is the relationship between eventual consistency and convergence: if new updates cease and every required valid update is eventually received and correctly integrated, replicas can converge. A server that retains ciphertext does not need to understand the application data to assist in delivering those updates.
Availability makes local work possible. Timely delivery makes synchronization convenient. Convergence makes independent work coherent again. A good personal application needs to address all three.
What this means for Nyskra
Nyskra develops local-first applications intended to work comfortably across a person’s devices. Users should be able to access their locally available information without waiting for a network connection and benefit from Nyskra Sync when their devices reconnect.
The distinction between transport and access to plaintext is particularly relevant to our Nyskra Zero architecture. Nyskra’s infrastructure can support encrypted synchronization without holding the secrets needed to decrypt protected personal content. Network availability and operational metadata remain relevant considerations.
The important user-facing combination is local availability, convenient synchronization, and cryptographically protected privacy. Those broader architectural trade-offs explain why delivery, offline usability, and privacy should be evaluated separately.
Further reading
For the broader background, see our articles on Data Synchronization, Local-First Software, Distributed Systems, CRDTs, and Zero-Access Architecture. The sections on Multi-Device Synchronization and Offline Synchronization provide additional context for different device connection schedules.
The original Local-first software: You own your data, in spite of the cloud essay discusses both direct peer communication and the role of cloud peers. Automerge’s network synchronization guide provides a practical example of locally editable replicas using a persistent sync server, while the Syncthing FAQ documents a different, peer-to-peer-oriented approach and its connectivity requirements.