Data Sync

Couchbase Lite for Swift provides functionality that supports the flexible and secure replication and synchronization of data whether locally, centrally or at the edge.

docs listener diagram

Locally

You can replicate local databases on-device — see: Intra-device Data Sync

Centrally

You can sync with a centralized Couchbase Server database using Sync Gateway — see: Remote Sync using Sync Gateway

At the edge

You can sync directly with other edge devices, peer-to-peer, using a listener to interact with the Couchbase Lite replicator — see: Landing P2Psync