Is it possible to have different document lifetimes either side of an XDCR link?


I currently have a Couchbase cluster configured and hosting a lot of documents. I’d like to have a second cluster where all the documents would be replicated to but where they would live for a much longer period of time. That is, documents would be not be available after, say, 7 days in the source cluster but for an additional, say, 120 days in the target cluster. I had thought of using XDCR to solve this problem, but could it satisfy my requirements?


XDCR will keep the data on the target in sync with the source cluster, so deleting at the source and not deleting in the target does not work for this. What you could do however is doing a dual write to both clusters and setting different TTLs for each write.