1
00:00:00,360 --> 00:00:07,380
In this video, we are going to do our hands on lab, which is the using animals on the trigger to invoke

2
00:00:07,380 --> 00:00:10,080
a lambda function and persist on Dynamo db.

3
00:00:10,840 --> 00:00:16,960
So a double Islam that integrates with other services to invoke functions or take other actions.

4
00:00:17,050 --> 00:00:24,130
So as you remember that we will using the animals in history to trigger invoke lambda function and persist

5
00:00:24,130 --> 00:00:25,120
on dynamic DB.

6
00:00:25,150 --> 00:00:28,780
Here you can find the architecture that we will implement in this section.

7
00:00:28,780 --> 00:00:31,200
So basically we will follow these steps.

8
00:00:31,210 --> 00:00:37,900
We will upload object into bucket and after that these will be asynchronous to invoke our lambda function

9
00:00:37,900 --> 00:00:40,650
in response to resource lifecycle events.

10
00:00:40,660 --> 00:00:44,830
And after that you will save uploaded file metadata in Dynamo DB.

11
00:00:45,040 --> 00:00:47,800
Also, you can follow the slide in here.

12
00:00:47,800 --> 00:00:54,850
In the client application, we will upload object in Amazon S3 bucket and bucket will be load V to objects

13
00:00:54,850 --> 00:01:01,180
and when we upload object into the bucket, this will be file and even to the lambda function which

14
00:01:01,180 --> 00:01:06,910
is the object uploaded event and this event trigger and invoke lambda function asynchronously.

15
00:01:06,910 --> 00:01:10,360
And in the lambda function code we will perform our business logic.

16
00:01:10,390 --> 00:01:17,140
This will be saved into the uploaded file metadata into the Dynamo DB database and response back to

17
00:01:17,140 --> 00:01:18,610
the lambda.

18
00:01:18,610 --> 00:01:24,850
Since it is a asynchronous flow, there is no synchronous response to the client application.

19
00:01:24,850 --> 00:01:31,000
We will check the uploaded event stored in Dynamo DB or not from the management console.

20
00:01:31,770 --> 00:01:32,380
Okay.

21
00:01:32,430 --> 00:01:37,440
As you know that when we implement any architecture on a place, we have two main steps.

22
00:01:37,470 --> 00:01:43,980
The first part is create infrastructure on a cloud, and the second part is develop the actual code

23
00:01:43,980 --> 00:01:46,230
for interacting S3 and dynamic DB.

24
00:01:46,380 --> 00:01:48,300
So we will start with the first step.

25
00:01:48,300 --> 00:01:54,630
Let's create these architecture infrastructure on the cloud, and after that we will write lambda function

26
00:01:54,630 --> 00:01:55,050
code.
