MongoDB到DynamoDB [英] MongoDB to DynamoDB

查看:94
本文介绍了MongoDB到DynamoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在Mongo中有一个数据库在EC2实例上运行,并且想将数据迁移到DynamoDB.这可能吗?实现此目标的最经济有效的方法是什么?

I have a database currently in Mongo running on an EC2 instance and would like to migrate the data to DynamoDB. Is this possible and what is the most cost effective way to achieve this?

推荐答案

当您要求经济有效的方式"迁移数据时,我假设您正在寻找可以简化生活的现有技术.如果是这样,您可以执行以下操作:

When you ask for a "cost effective way" to migrate data, I assume you are looking for existing technologies that can ease your life. If so, you could do the following:

  • 使用 mongoexport .
  • 在S3中的某个位置上传该文件.
  • 使用
  • Export your MongoDB data to a text file, say in tsv format, using mongoexport.
  • Upload that file somewhere in S3.
  • Import this data, in S3, to DynamoDB using AWS Data Pipeline.

当然,您应该设计&在完成所有这些操作之前,请完成DynamoDB表架构的确定.

Of course, you should design & finalize your DynamoDB table schema before doing all this.

这篇关于MongoDB到DynamoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆