DynamoDB is AWS NoSQL DB Service. The term “service” here means that Amazon takes care of the hardware, patching, and scaling. NoSQL Database is good for fast storage, which can easily scale horizontally. Also, it’s good in the case that your data doesn’t have a fixed set of fields. When each record seems like a document (that’s why Microsoft named his NoSQL DB DocumentDB). Billing for DynamoDB depends on few factors, such as read and write capacities.
In my previous article, I wrote about it. Here I can add that Amazon has a very good Data Model and Object persistent interface, which allows working with records as with usual POCO objects.
For work with DynamoDB, we need to use AWSSDK.DynamoDBv2 NuGet package and using it along with **Amazon.DynamoDBv2.DataModel. **Init client and context as shown below.
To create a table we need to decide which mandatory fields it should have and which keys.
#lambda-function #c# #lambda