System Design Atlas
Application system

Collaborative documents with offline edits

A team edits text concurrently and sometimes offline. The system merges permitted changes, shows confirmed synchronisation status and checks revoked write permissions before accepting further changes.

Follow the design
Opened document on a writing pad with two different coloured pens.

Business workflow

A team edits text concurrently and sometimes offline. The system merges permitted changes, shows confirmed synchronisation status and checks revoked write permissions before accepting further changes.

These questions are answered by the case

  • A text document with a character sequence and comments
  • Multiple devices per person
  • Deterministic combination
  • Server-side checked rights for synchronization

These questions remain open

  • Table Formulae
  • End-to-end encrypted collaboration and automatic resolution of content conflicts
  1. Locally edited

    Editors open the authorized document.

  2. Reconciling changes

    The system checks new changes when synchronizing.

  3. Confirming the common status

    Document owners clarify content conflicts; devices show the confirmed status.

Workflow with tasks and outcomes

Domain subsystems and their interactions

Edit locally → Compare changes → Confirm common status. A team edits text simultaneously and temporarily offline. The system merges permitted changes, shows the confirmed synchronization status and handles revoked write permissions before a new acceptance.

User interfaceAccess for the roles involved

Editors change text and check synchronization status. Document owners assign permissions and resolve content conflicts. Support investigates failed synchronization using limited metadata. Platform operations runs synchronization and recovery. The identity service confirms identity and organizational membership.

Requests and receive feedback
Local draft and change ingestionDomain subsystems
  • Local draft

    Saves unconfirmed changes to the device.

    Described in the design
  • Acceptance of changes

    Checks identity, rights and payload.

    Described in the design
  • Merging

    Generates deterministic text from accepted changes.

    Described in the design
  • Rights management

    Manages document-specific write permissions.

    Described in the design
  • Snapshot maintenance

    Compacts confirmed history with known revision watermark.

    Described in the design
Edit locally → Compare changes → Confirm common status. The domain responsibilities are assigned to runtime processes in the draft.

Tasks and responsibilities

A team edits text concurrently and sometimes offline. The system merges permitted changes, shows confirmed synchronisation status and checks revoked write permissions before accepting further changes.

Local draft

Saves unconfirmed changes to the device.

Acceptance of changes

Checks identity, rights and payload.

Merging

Generates deterministic text from accepted changes.

Rights management

Manages document-specific write permissions.

Snapshot maintenance

Compacts confirmed history with known revision watermark.

Practical examples

  • Automerge · Documentation ↗

    Primary technical source for replicated data and merging; the concrete order rule of the example is its own illustrative design assumption and not a claim about internal product details.

Our own fictitious example design: A text document with a character sequence and comments; several devices per person; deterministic merging; server-side checked permissions during synchronization. Figures and quality goals are illustrative test assumptions. Outside are table formulas, encrypted end-to-end cooperation and automatic content conflict resolution.