Seb*_*anK 5 amazon-web-services aws-documentdb-mongoapi
我正在设置一个微服务,该服务需要对Amazon DocumentDB的更改做出反应。在使用MongoDB时,我将为此使用响应式变更流。如果使用DocumentDB进行此操作,则在注册更改侦听器时会收到异常消息,说明当前不支持更改流。
2019-02-12T11:46:15.513+0100 E QUERY [js] Error: command failed: {
"ok" : 0,
"errmsg" : "The $changeStream stage is currently not supported",
"code" : 303
} : aggregate failed :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
doassert@src/mongo/shell/assert.js:18:14
_assertCommandWorked@src/mongo/shell/assert.js:534:17
assert.commandWorked@src/mongo/shell/assert.js:618:16
DB.prototype._runAggregate@src/mongo/shell/db.js:260:9
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1062:12
DBCollection.prototype.watch@src/mongo/shell/collection.js:1589:12
@(shell):1:1
Run Code Online (Sandbox Code Playgroud)
对于“旧式”解决方案(op-log-tailing),我没有发现有关如何实现这一点的任何提示。
建议使用什么设置在Amazon DocumentDB上注册数据库更改?
| 归档时间: |
|
| 查看次数: |
790 次 |
| 最近记录: |