Couchbase Sync Gateway
What is Couchbase Sync Gateway?
Couchbase Sync Gateway is an internet-facing cloud component that securely synchronizes data between Couchbase Lite on the mobile devices and the Couchbase servers on the cloud. It is an easy-to-use scalable sync solution that will effortlessly syncs local app data with Couchbase Lite to a remote Couchbase Server database.
This box installs a Couchbase Sync Gateway and start its synchonization services with the COUCHBASE_SERVER binding.
Maintains up-to-date copies of documents where users need them. On mobile devices for instant access and on servers in data centers for reasons such as synchronizing documents, sharing documents, and loss-protection. Mobile apps create, update, and delete files locally, Sync Gateway takes care of the rest.
Provides access control, ensuring that users can only access documents to which they should have access.
Ensures that only relevant documents are synced. Sync Gateway accomplishes this by examining document and applying business logic to decide whether to assign the documents to channels. Access control and ensuring that only relevant documents are synced are achieved through the use of channels and the sync function.
ADMIN_PORT: Admin port to be opened [4985 as default value]
BUCKET: Bucket name of the database to be synchronized.
CONFIG: Config.json file to be configured with the variables values.
COUCHBASE_SERVER: Binding to the Couchbase Server to synchronize with.
EDITION: Choose between enterprise or community [enterprise as default value]
SYNC_PORT: Sync port to be opened [4984 as default value]
An instance executing this box will use bash scripting to download, install and configure Couchbase Sync Gateway. Box events handle the Couchbase Sync Gateway lifecycle on the instance as follows:
pre_install event script: detects the linux distribution family, downloads the correct Couchbase Sync Gateway package (rpm or deb) for the select edition and installs it using rpm or dpkg package manager.
pre_start event script: downloads and configures config.json file and uses it to launch the sync gateway in background.
The box supports deploying to these linux distributions:
Amazon Linux AMI 2015.03
Centos 6.5, 7
Ubuntu 12.04, 14.04