将 DocumentDB 复制到本地 mongo 服务

问题描述

我们正在使用 AWS 的 DocumentDB 设置 MongoDB 集群。

DocumentDB 允许在云中设置复制,但我们也希望拥有本地副本。是否有可能在云中拥有 mongo 集群的本地副本?

先谢谢了!

解决方法

是的。您可以使用 DocumentDB Change Streams 来实现这一点。在此 GitHub 中,您可以找到它的示例实现。在一系列DocumentDB from the dining table episode 1中,您还可以了解如何使用此功能实现您的目标。