Can a single sync gateway server be used to point to different couchbase servers?


#1

If I have multiple couchbase servers for different regions, can I use a single sync gateway server for replication among these different servers? The data that would need to be replicated would be different according to each region. Is there a way to make the sync gateway push or pull data to a specific server based on some check or flag.


#2

A single Sync Gateway server is generally associated with a single Couchbase Server cluster. There are multiple options for Couchbase Server cluster replication. XDCR is generally the first choice for normal data center replication. It’s possible to use SG-to-SG cluster replication to move application data, but only in cases where XDCR isn’t appropriate.