Skip to content
KinPilot™Learn & Explore
Menu

Grades 6–8 · Computing

How do cloud files stay in step across devices?

A cloud file service stores data on computers reached through a network. A synchronization program coordinates that stored file with copies on your devices. When a laptop saves a change, the program detects a new revision and sends information to the service. Other connected devices can then receive the changed file.

D51 visual explanationAll copies share revision v1. Laptop revision v2A and phone revision v2B are separate descendants of v1. The illustrative exchange reaches the service and connected devices. Cloud revisions after this snapshot: v2A, v2B. Concurrent branches are preserved pending a resolution rather than selecting an automatic newest-clock winner. No particular vendor protocol or automatic semantic merge is implemented.Synchronization exchanges changes between file copiesAll copies share ancestor v1 before these edits.Laptopv2APhonev2BCloud servicev2Av2BTwo edits from v1: both revisions are preserved.v2A and v2B need conflict resolutionA merge may combine both sets of changes.Revision labels express ancestry; clocks alone do not settle edits.

In the diagramSynchronization exchanges changes between file copiesAll copies share ancestor v1 before these edits.Laptopv2APhonev2BCloud serviceTwo edits from v1: both revisions are preserved.v2A and v2B need conflict resolutionA merge may combine both sets of changes.Revision labels express ancestry; clocks alone do not settle edits.

Two devices edited the same ancestor v1 separately. The service preserves v2A and v2B so a conflict can be resolved instead of assuming a later clock value settles it.

Changes cannot arrive everywhere at the same instant. A device may be offline, a transfer may take time, or a program may still be using a local copy. While a device is disconnected, its saved edits remain local. Synchronization can exchange them when the connection returns.

The difficult part is deciding how revisions relate. Suppose a laptop and phone both begin with revision v1. The laptop creates v2A while the phone separately creates v2B. Neither edit includes the other, even if one device’s clock shows a later time. A service can detect this disagreement and preserve both versions rather than silently treating the newest timestamp as the answer.

Resolution depends on the service, file type and editing program. Some systems can merge compatible changes. Others create a conflict copy or ask for a decision about which changes to keep. The picture stops with both conflicting branches preserved. A later merged revision, called v3 here, could combine both sets of changes and then be distributed. Synchronization coordinates copies through these exchanges; it does not mean every offline edit can be combined automatically.

About this explanation

Starting knowledge: Understand local file copies, saving an edit, and sending data between a device and a service.

Sources

  • Microsoft — Sync your computer’s files and folders with OneDrive
  • Microsoft — Resolve sync issues in OneDrive for work or school
  • Dropbox — WriteMode: revision-checked updates
← Grades 6–8 topics