AI agents: fetch the documentation index at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
Data flow
How mutations and deltas flow through Strata Sync, from user input to server confirmation and back.
Two primary data flows: client writes (mutations going to the server) and server pushes (deltas coming back).
Client write flow
Call a mutation method on the sync client. The change applies optimistically, persists locally, and sends to the server in the background.
sequenceDiagram
participant UI as React Component
participant Client as Sync Client
participant Store as Identity Map
participant IDB as IndexedDB
participant Outbox as Outbox Manager
participant Transport as Transport Adapter
participant Server as API Server
UI->>Client: client.update("Task", id, changes)
Client->>Client: Create transaction (clientTxId + idempotency key)
Client->>Store: Apply optimistic update
Store-->>UI: MobX reaction (UI re-renders)
Client->>IDB: Persist updated row