1
00:00:01,220 --> 00:00:01,910
Hello and welcome back.

2
00:00:01,910 --> 00:00:08,420
So let's talk about Italy just clammed up when to use it and the building blocks of the several less

3
00:00:08,450 --> 00:00:14,040
applications so someone should I use an enabling slander.

4
00:00:14,090 --> 00:00:18,570
This is an ideal compute platform for many applications in areas.

5
00:00:18,620 --> 00:00:21,760
So here is what you need to do to use the database lambda.

6
00:00:21,890 --> 00:00:28,610
You need to write your own code so you are responsible for your own code in a language that is supported

7
00:00:28,610 --> 00:00:30,780
by lambda and you said that is not jazz.

8
00:00:30,800 --> 00:00:34,020
Java C sharp and Python.

9
00:00:34,450 --> 00:00:41,680
The second thing is you should be able to run your code or be able to build the code that runs within

10
00:00:41,680 --> 00:00:46,650
database lambda standard runtime environment and resources provided by Lambda as well.

11
00:00:46,870 --> 00:00:49,150
Let's look at there are several applications.

12
00:00:49,150 --> 00:00:49,740
A little bit.

13
00:00:49,780 --> 00:00:53,110
So a typical several this application what would it consist of.

14
00:00:53,110 --> 00:00:55,510
It would consist of one or more lambda functions.

15
00:00:55,510 --> 00:01:03,670
So this is the code that you write one or more functions that are uploaded or deployed to Lambda.

16
00:01:03,760 --> 00:01:10,510
The these codes or these functions will be triggered by events events such as words such as object uploads

17
00:01:10,510 --> 00:01:16,170
to an S3 an Amazon S.A. notification an API actions.

18
00:01:16,250 --> 00:01:17,850
Is this a conclusive list long.

19
00:01:17,960 --> 00:01:24,170
There are many more services that can trigger a Lambda Lambda function and there are also manual you

20
00:01:24,170 --> 00:01:28,890
can write your own code to call API I's and to trigger a lambda function.

21
00:01:29,030 --> 00:01:32,730
You can do scheduled events for that as well.

22
00:01:32,930 --> 00:01:40,100
OK so several this application is one or more lambda functions and means to trigger them to run these

23
00:01:40,100 --> 00:01:45,740
functions or to trigger the functions to run the code and of course the code would be to serve the purpose

24
00:01:45,740 --> 00:01:46,740
of the application.

25
00:01:47,070 --> 00:01:53,720
Okay so the whole point about server lists or lambda based applications is you don't have to p provision

26
00:01:53,750 --> 00:01:58,850
and infrastructure and administer it and run it by yourself in order to run your code and applications.

27
00:01:58,940 --> 00:02:05,450
You can have lambda run that for you when needed by a trigger and the trigger is either as we mentioned

28
00:02:05,450 --> 00:02:10,370
it could be an established service could be an alarm the function triggering another lambda function

29
00:02:10,430 --> 00:02:17,540
and it could be as we mentioned a custom code or custom application that you you run could be in while

30
00:02:17,540 --> 00:02:22,570
application and computer based application that runs does API calls.

31
00:02:22,610 --> 00:02:29,600
This how we invoke the lambda functions so the lambda functions can stand alone or leverage other resources

32
00:02:29,600 --> 00:02:33,050
such as dynamic tables or Amazon S three buckets.

33
00:02:33,050 --> 00:02:39,390
The example that we just saw now the user was launching an object to an S3 bucket.

34
00:02:39,430 --> 00:02:45,890
There's three bucket triggered S3 and S3 based on the unification and configuration and it knew exactly

35
00:02:45,890 --> 00:02:49,430
which lambda function to trigger and that's how it worked.

36
00:02:49,460 --> 00:02:51,990
So S3 you were used for that.

37
00:02:52,010 --> 00:02:58,790
Now the action itself and the lambda function runs it can generate something else that will be stored

38
00:02:58,790 --> 00:03:04,610
in a dynamic DV table or it will be stored in another S3 Buckets so that that's possible as well.

39
00:03:05,150 --> 00:03:11,120
So the functions when they run they can stand alone so they could have the whole thing or leverage other

40
00:03:11,120 --> 00:03:17,060
resources from IT areas such as dynamic DB tables or is 3 buckets.

41
00:03:17,090 --> 00:03:24,050
The most basic server this application is a lambda function that's the most basic one that does not

42
00:03:24,050 --> 00:03:28,630
depend on anything around it a code that learning trans that it.

43
00:03:28,760 --> 00:03:33,040
Let's look at the building blocks of lambda application or lambda based application.

44
00:03:33,050 --> 00:03:36,620
So the first thing and the cool component is the lambda function.

45
00:03:36,620 --> 00:03:38,250
So what is the lambda function.

46
00:03:38,420 --> 00:03:39,300
It is code.

47
00:03:39,380 --> 00:03:44,480
So it is comprised of your custom code and any independent libraries required for this code.

48
00:03:44,480 --> 00:03:47,900
So it's the foundation of the lambda service.

49
00:03:47,900 --> 00:03:50,860
The second one is the event source I need to trigger that code.

50
00:03:50,870 --> 00:03:56,840
I need an event or a reason or a timing or something happens that goes and triggers the code because

51
00:03:56,870 --> 00:04:00,890
otherwise if you are not dependent on an event what will happen.

52
00:04:00,890 --> 00:04:06,140
That means either you will not have a computer at all or you will have compute all the time sitting

53
00:04:06,170 --> 00:04:08,360
idle waiting for the processing.

54
00:04:08,360 --> 00:04:08,930
Right.

55
00:04:08,960 --> 00:04:14,570
So now we are back to the easy to instance side when if we launch an easy to instance and it is running

56
00:04:14,630 --> 00:04:17,010
you're paying for it even if it's not you.

57
00:04:17,060 --> 00:04:22,340
So an Italy a service such as Amazon S.A. or custom service that could be an application that triggers

58
00:04:22,340 --> 00:04:26,180
that trigger your function and executes its logic.

59
00:04:26,180 --> 00:04:33,320
The third component is the downstream resources now an intelligence service such as dynamic DV S3 bucket

60
00:04:33,350 --> 00:04:36,050
that lambda function calls once it is triggered.

61
00:04:36,200 --> 00:04:42,680
So it could be writing information in a diamond table or saving the output into as an object into an

62
00:04:42,680 --> 00:04:43,490
S3 bucket.

63
00:04:43,490 --> 00:04:50,720
The fourth component of the lambda based applications or the several applications is the log streams.

64
00:04:50,720 --> 00:04:52,580
So what are the log streams we're talking about.

65
00:04:52,580 --> 00:04:58,670
This is when the lambda service will automatically monitor your function or function invocations or

66
00:04:58,670 --> 00:05:02,410
functions invocations and report metrics to cloud watch.

67
00:05:02,510 --> 00:05:02,930
Oh nice.

68
00:05:02,930 --> 00:05:09,350
So that means I can through the logs streams I can monitor and know what's going on with my functions

69
00:05:09,390 --> 00:05:13,780
their invocations who had requested the invocation and so on and so forth.

70
00:05:13,820 --> 00:05:20,090
And you can embed some function code within some functions or subpart part of the code in order to do

71
00:05:20,090 --> 00:05:21,750
custom logging statements as well.

72
00:05:22,290 --> 00:05:28,640
OK so it content an execution of the code at some point when everything has been done properly then

73
00:05:28,640 --> 00:05:35,000
it will say that this function was was executed at such and such read the time date and put that exactly

74
00:05:35,090 --> 00:05:40,670
that allows you to analyze the execution flow and performance of your lambda function to ensure it is

75
00:05:40,670 --> 00:05:41,610
working properly.

76
00:05:41,750 --> 00:05:47,120
So not only are launching code but your code if it is intelligent and it has same kind of functions

77
00:05:47,120 --> 00:05:49,510
you can even see the performance.

78
00:05:49,520 --> 00:05:55,550
How long did it take for that step to happen how long that step waited until the next one was executed

79
00:05:55,550 --> 00:05:56,820
and so on and so forth.

80
00:05:56,870 --> 00:06:02,980
The last one is the model itself the framework around which the several applications in enabling is

81
00:06:02,990 --> 00:06:07,450
run and this is called the several lists application model or a WSM.

82
00:06:07,460 --> 00:06:13,790
This is a model of to define several applications that we assume is natively supported by Italy s cloud

83
00:06:13,870 --> 00:06:19,450
formation and define simplified syntax for expressing several lists resources.

84
00:06:19,480 --> 00:06:25,510
OK so let's take a quick break and I will see you again and to discuss lambda function configurations

85
00:06:25,570 --> 00:06:26,670
and implications.

86
00:06:26,680 --> 00:06:27,240
I'll see you shortly.
