I have a service (deployed on ECS) that needs to listen and react to inserts on DynamoDB table.
Currently I am reading the table every second, but I would like to lower the latency. Is there a way I can subscribe to changes in DynamoDB and be notified (via websockets, long polling or similar mechanism) when some record is inserted?
I have checked out DynamoDB Streams, but I couldn't find a way to subscribe to the changes there either. There is a JS project that does something similar, but it
has a "interval to poll"
setting...
Is it possible to listen for changes without polling? If yes, how?