0

In a table I am having 292 records, for these 292 records I wrote 63 segments of parallel asynchronous in DynamoDB. If the records increases again I am writing segments in the code. Without writing the code like that to have added records to display, what is the solution. Please help me.

Alexander Patrikalakis
  • 5,054
  • 1
  • 30
  • 48
purushottam
  • 75
  • 1
  • 6

1 Answers1

0

You can enable a DynamoDB Stream on your table, and connect a lambda function that is triggered by the stream to display newly added records.

Alexander Patrikalakis
  • 5,054
  • 1
  • 30
  • 48
  • Please help in detail to overcome this issue, it is necessary to me. – purushottam Mar 30 '17 at 04:34
  • You can find a step by step walkthrough on triggering a lambda with a DynamoDB stream in the [AWS documentation](http://docs.aws.amazon.com/lambda/latest/dg/with-ddb-example.html). – Alexander Patrikalakis Mar 30 '17 at 04:35
  • By doing this, now I can have the data of full without adding code again and again. – purushottam Mar 30 '17 at 04:46
  • My project is realestate, I have number of records in all cities in my country. If there is a house or place in a city is ready to sell, this record will enter and it will be automatically displayed in the results page while we are searching for sale properties, without writing the code again and again. If I add a record in the database it will be updated and will be shown in the results page according to the search. To maintain my database as dynamodb what are the things i have to do, please suggest me. – purushottam Mar 30 '17 at 06:11
  • Please provide example script to display the data dynamically from the database. That means when I added a record to the dynamo database, without writing the segments again and again, I want to display the records of newly added. I am using nodejs. – purushottam Mar 31 '17 at 10:10
  • Please provide the script. – purushottam Mar 31 '17 at 10:35