I am looking to populate an SQS queue via a lambda function by listening to DocumentDB change streams. I know this can be done with DynamoDB. Is there a way to achieve this with DocumentDB?
Asked
Active
Viewed 3,433 times
1 Answers
6
Yes, Amazon DocumentDB has a change streams feature and you can use a Lambda function to get the change events and write them to another destination like SQS. There isn't currently a built-in integration between DocumentDB Change Streams and Lambda, so your Lambda will need to poll for change events and store the last processed event id externally (something like another DocumentDB collection or DynamoDB table). Please see this video that provides more details on how this can be done.

Leonid Koren
- 141
- 1
- 6