XDCR provides an efficient way to replicate data across different clusters in the Couchbase system. It can be used to replicate within a Couchbase cluster system or between Couchbase and third-party systems, such as ElasticSearch, which we saw in the previous chapter. It can be used to replicate data from one cluster to another cluster. They can be in different data centers, which are geographically widespread across continents, for example, replication from one data center in Mumbai and another in London for disaster recovery or for data locality. Data locality is a feature in which an application request from a user will be redirected to the nearest Couchbase cluster, which is physically near to the user, to provide better performances.
XDCR replicates data across clusters. Clusters can be located across different data centers, which can be geographically far away from each other, for recovery in the event of a natural disaster. In one cluster, there...