Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make a listener to know when a new item is being added to DynamoDB

I have a DynamoDB table with about 5-6 items in it.

In my android app, I want to create a listener which will run in background. The listener's purpose is to detect when a new item is being added to the DynamoDB table remotely, and when it detects a new item in the DB, the app will inform the user about it with a push notification which will include also one of the attributes of the item.

Is it possible? And if it does, then how can I do it?

like image 775
Ido Avatar asked Nov 09 '22 10:11

Ido


1 Answers

you can use aws Lambda function on dynamodb stream

the lambda function get a stream of added/updated/deleted items, and can perform any action.

http://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html

like image 146
Eyal Ch Avatar answered Nov 15 '22 04:11

Eyal Ch