AWS 中的 MERN 堆栈

MERN Stack in AWS

我是 MERN 堆栈的新手,并设法构建了一个应用程序。我想在 AWS 中部署它。但问题是我必须使用文档数据库而不是 Mongo 数据库。我是否需要重写我的代码才能做到这一点。我可以使用相同的猫鼬方法吗?请帮忙。我对此很陌生。

DocumentDB API 大部分与 MongoDB 兼容,这是它成名的全部原因,因此您很可能无需更改任何内容。

然而,系统之间存在一些限制和差异,这些限制和差异是 documented here(不幸的是,这篇文章太长了,无法在这里简要总结,所以我只包含子主题列表 - 检查查看文档以获取更多详细信息)。

  • Admin Databases and Collections
  • cursormaxTimeMS
  • explain()
  • Field Name Restrictions
  • Index Builds
  • Lookup with empty key in path
  • MongoDB APIs, Operations, and Data Types
  • mongodump and mongorestore Utilities
  • Result Ordering
  • Retryable Writes
  • Sparse Index
  • Storage Compression
  • Using $elemMatch Within an $all Expression
  • $distinct and $elemMatch Indexing
  • $lookup