In this video, we are going to understand dynamic DB interactions working with the items and the attributes
before we developing Node.js Lambda functions.
We should understand the basics of dynamics.
After that it will be very clear to interact with dynamic DB from our Node.js lambda functions.
So the idea is that you should think Dynamic DB is a resources and dynamic DB expose available APIs
that we can call from our Lambda function.
We're using the HDC libraries, so let's see how we can interact with V items and the attributes.
For that reason, we should read the official documentation before writing the function.
Check the DB item level features for creating item.
Here is an article about the dynamic DB API and item level API is listed in here in a documentation.
An item is a collection of attributes.
Each attribute has a name and value.
An attribute can be a scholar, asset or document type.
So dynamic DB provides for operation for basic create, read, update and delete functionality.
All these operations are automatic.
You can see in here put item, get item, update item and delete item.
These are the operations for dynamic DB APIs.
We can easily see the details if you scroll down.
We have also batch get and batch write item APIs.
For example, key topics about reading an item is you remember that when we are running the commands,
we use the dynamic DB get item command and this is the gate item API that expose from the A list dynamic
DB and all these code interactions has a different core API that we can find in the Amazon dynamic DB
API reference documentation.
If you open the API reference documentation, you can see the list of actions can be done for interacting
dynamic DB All these APIs can be invoked from the using the CLI and also SDK.
So last lecture we have used using the SQL commands.
But in this section we will focus on the invoke these APIs using the dynamic DB SDK libraries.
So after we have learned the basics of dynamic DB, how we can interact all these methods from our lambda
function.
Of course we will use the ADA SDK for JavaScript and version three.
So this is the best practice and we understood that why we are using this library and these Node.js
SDK in the last section, because this is a great benefit for reducing the package size and also increasing
the lambda function performance and a way to avoid to the code start issues.
Now we will follow these informations and start to develop our Node.js project with using a basic JavaScript
machine tool and interact with the innovative.