gonzaleznicolas
gonzaleznicolas

Reputation: 71

How to replicate a Cosmos DB container

I have a very large Cosmos DB container with data as old as several years.

I want to replicate the container. As I make changes to my container, I would like the replica to be kept up to date.

How can I achieve this?

Upvotes: 0

Views: 786

Answers (1)

Mark Brown
Mark Brown

Reputation: 8763

Using Change Feed is the best way to maintain a duplicate of your container.

Note that you need to use soft deletes (tombstone flag) with change feed as a hard delete is not picked up.

Upvotes: 1

Related Questions