1
00:00:00,240 --> 00:00:06,480
In this video, we are going to understand dynamic DB interactions working with the items and the attributes

2
00:00:06,480 --> 00:00:09,090
before we developing Node.js Lambda functions.

3
00:00:09,090 --> 00:00:11,390
We should understand the basics of dynamics.

4
00:00:11,400 --> 00:00:16,800
After that it will be very clear to interact with dynamic DB from our Node.js lambda functions.

5
00:00:17,370 --> 00:00:24,390
So the idea is that you should think Dynamic DB is a resources and dynamic DB expose available APIs

6
00:00:24,390 --> 00:00:26,700
that we can call from our Lambda function.

7
00:00:26,700 --> 00:00:33,270
We're using the HDC libraries, so let's see how we can interact with V items and the attributes.

8
00:00:33,270 --> 00:00:38,160
For that reason, we should read the official documentation before writing the function.

9
00:00:38,160 --> 00:00:41,890
Check the DB item level features for creating item.

10
00:00:41,910 --> 00:00:49,710
Here is an article about the dynamic DB API and item level API is listed in here in a documentation.

11
00:00:49,710 --> 00:00:51,930
An item is a collection of attributes.

12
00:00:51,930 --> 00:00:54,300
Each attribute has a name and value.

13
00:00:54,300 --> 00:00:58,500
An attribute can be a scholar, asset or document type.

14
00:00:58,500 --> 00:01:05,190
So dynamic DB provides for operation for basic create, read, update and delete functionality.

15
00:01:05,220 --> 00:01:07,500
All these operations are automatic.

16
00:01:07,500 --> 00:01:12,180
You can see in here put item, get item, update item and delete item.

17
00:01:12,180 --> 00:01:15,210
These are the operations for dynamic DB APIs.

18
00:01:15,210 --> 00:01:19,260
We can easily see the details if you scroll down.

19
00:01:19,260 --> 00:01:22,850
We have also batch get and batch write item APIs.

20
00:01:22,860 --> 00:01:29,880
For example, key topics about reading an item is you remember that when we are running the commands,

21
00:01:29,910 --> 00:01:37,470
we use the dynamic DB get item command and this is the gate item API that expose from the A list dynamic

22
00:01:37,470 --> 00:01:44,280
DB and all these code interactions has a different core API that we can find in the Amazon dynamic DB

23
00:01:44,310 --> 00:01:45,960
API reference documentation.

24
00:01:45,960 --> 00:01:51,270
If you open the API reference documentation, you can see the list of actions can be done for interacting

25
00:01:51,270 --> 00:01:57,150
dynamic DB All these APIs can be invoked from the using the CLI and also SDK.

26
00:01:57,150 --> 00:02:00,780
So last lecture we have used using the SQL commands.

27
00:02:00,780 --> 00:02:07,560
But in this section we will focus on the invoke these APIs using the dynamic DB SDK libraries.

28
00:02:07,710 --> 00:02:13,890
So after we have learned the basics of dynamic DB, how we can interact all these methods from our lambda

29
00:02:13,890 --> 00:02:14,580
function.

30
00:02:15,310 --> 00:02:20,950
Of course we will use the ADA SDK for JavaScript and version three.

31
00:02:21,250 --> 00:02:28,240
So this is the best practice and we understood that why we are using this library and these Node.js

32
00:02:28,330 --> 00:02:35,380
SDK in the last section, because this is a great benefit for reducing the package size and also increasing

33
00:02:35,380 --> 00:02:41,260
the lambda function performance and a way to avoid to the code start issues.

34
00:02:41,290 --> 00:02:47,830
Now we will follow these informations and start to develop our Node.js project with using a basic JavaScript

35
00:02:47,830 --> 00:02:50,170
machine tool and interact with the innovative.
