AWS DynamoDB provides streams which helps in capturing the table activity. To my understanding the flow of capturing changes in the dream is Stream ARN -> Shards -> shardIterator -> Records
. In order for an application to monitor changes on a Dynamo table, it will have to keep on performing the above cycle. I was wondering if this flow can be simplified by hooks that can monitor those changes and trigger, which my application can listen to. I'm aware that there is a AWS Lambda integration which can perform the above cycle and alert, but I was wondering if it can be possible for an application to listen on AWS lambda alerts
The npm package dynamodb-stream does make it easier to consume the changes, but the polling mechanism doesn't seem to be the most efficient, if all table activity needs to be captured as fast as possible