1
00:00:00,480 --> 00:00:06,900
In this section we will walk through with a management console for a lambda.

2
00:00:07,530 --> 00:00:11,670
We will create, configure, invoke and test our lambda functions.

3
00:00:12,060 --> 00:00:19,080
But before that, I would like to show you to begin page of a lambda in the management console.

4
00:00:19,110 --> 00:00:25,380
In the begin page we will understand how Lambda works with the following the step by step tutorial of

5
00:00:25,380 --> 00:00:26,520
the Lambda.

6
00:00:27,060 --> 00:00:28,440
Let's get started.

7
00:00:28,830 --> 00:00:36,660
Please open the ADA signing page and log in the console with the IAM user, which we create in the last

8
00:00:36,660 --> 00:00:37,290
section.

9
00:00:39,220 --> 00:00:45,190
So this will be open the dashboard section of our management console.

10
00:00:45,760 --> 00:00:53,560
And if we go to the lambda section, you can search by Lambda and you can add the favorites by clicking

11
00:00:53,560 --> 00:00:54,540
the start button.

12
00:00:54,550 --> 00:00:58,300
The Lambda function, by this way, you can see lambda in here.

13
00:00:58,300 --> 00:01:05,290
So now let's click the lambda button and go to Lambda Dashboard section.

14
00:01:05,890 --> 00:01:12,250
So this is the dashboard screen of the lambda and it is opening the Discover page.

15
00:01:12,250 --> 00:01:19,630
As you can see the URL, you can see the Discover in here, but there is also a hidden begin page that

16
00:01:19,630 --> 00:01:22,330
explains Lambda Executions very well.

17
00:01:22,330 --> 00:01:29,980
So please change the urine and remove the discover and right to begin.

18
00:01:30,610 --> 00:01:38,710
I'm going to remove this cover and right begin hit the enter and see that we are open begin page that

19
00:01:38,710 --> 00:01:40,990
explains a lambda very well.

20
00:01:40,990 --> 00:01:43,570
You will see the welcome message of the lambda.

21
00:01:43,750 --> 00:01:47,800
This is the beginning page and it includes several widgets.

22
00:01:47,800 --> 00:01:55,300
You can scroll down and see that there are some widgets like how it works and related services, more

23
00:01:55,300 --> 00:01:59,260
resources, use cases, pricing and costs and so on.

24
00:01:59,530 --> 00:02:05,380
So if you scroll up, you can see that this is the old picture of the lambda.

25
00:02:05,380 --> 00:02:07,900
Let's overview from the beginning of the page.

26
00:02:07,930 --> 00:02:10,480
There is a definition about a lambda.

27
00:02:10,660 --> 00:02:11,590
It is lambda.

28
00:02:11,590 --> 00:02:15,040
Lets you run the code without thinking about servers.

29
00:02:15,160 --> 00:02:18,760
You pay only for the complete time that you consume.

30
00:02:18,760 --> 00:02:24,130
There is no charge when your code is not running with lambda, you can run the code for virtually any

31
00:02:24,130 --> 00:02:28,240
type of the application or backend services, all with zero administrators.

32
00:02:28,480 --> 00:02:31,000
So how Lambda is works.

33
00:02:31,000 --> 00:02:34,480
If you scroll down here, you can find a step by step visit.

34
00:02:34,510 --> 00:02:41,170
This is a visit in this page and this is the step by step wizard that explain how Lambda works.

35
00:02:41,170 --> 00:02:41,950
Very well.

36
00:02:41,980 --> 00:02:44,500
Let's start with the first step here.

37
00:02:44,500 --> 00:02:50,260
You can find the different languages and runtimes that can be run on the lambda.

38
00:02:50,290 --> 00:02:55,600
This is the net go java, node.js, python, ruby and Custom Runtime.

39
00:02:55,690 --> 00:03:02,080
We will follow the Node.js default runtime is selected Node.js and you can see simple lambda function

40
00:03:02,080 --> 00:03:02,500
code.

41
00:03:02,530 --> 00:03:07,870
This is the very basic lambda function code that basically logs the incoming event and turn back the

42
00:03:07,870 --> 00:03:09,280
helo from Lambda Message.

43
00:03:10,260 --> 00:03:14,220
Basically it is locking incoming emancipation object and turning back the halo message.

44
00:03:14,250 --> 00:03:20,310
We can detect the run lambda function code in this window, so if we click the run button, this will

45
00:03:20,310 --> 00:03:25,710
directly run this lambda function and see that is the response of the lambda function.

46
00:03:25,710 --> 00:03:31,410
Hello from message a the this lambda function successfully worked and return back to hello message.

47
00:03:31,650 --> 00:03:40,290
So if you proceed the visit you can see that there is the next button will be activated next lambda

48
00:03:40,290 --> 00:03:42,510
response to events button is activated.

49
00:03:42,540 --> 00:03:45,720
Please click this button and see what's happened.

50
00:03:45,990 --> 00:03:53,130
So in here we can find the animation about how to scale automatically and manage lambda executions with

51
00:03:53,130 --> 00:03:56,700
creating and distributing lambda execution environments.

52
00:03:56,700 --> 00:04:01,620
This is a very good illustration that you can understand lambda function scaling features.

53
00:04:01,620 --> 00:04:08,790
Also, we can see how in locations and cost affected one thing from the different services to Lambda

54
00:04:08,790 --> 00:04:09,600
executions.

55
00:04:09,600 --> 00:04:15,600
So basically in this animation we can send different events from different event sources to the lambda

56
00:04:15,600 --> 00:04:21,970
function until we go to Lambda Invocations and see that how lambda execution environment created and

57
00:04:21,970 --> 00:04:22,940
this structured.

58
00:04:23,100 --> 00:04:30,210
So you can see that we can send an event for a mobile notification, we think in location.

59
00:04:30,420 --> 00:04:36,060
For example, when you click this button you can see that we are triggering an invocation of the lambda

60
00:04:36,060 --> 00:04:42,720
function and this is the encoding, increasing the concurrent executions and writing the logs in here.

61
00:04:42,750 --> 00:04:49,200
So this is very good illustration so we can send the event a mobile notification with synchronous invocation

62
00:04:49,200 --> 00:04:55,350
or streaming data to lambda function which trigger with the event source mapping invocations like from

63
00:04:55,350 --> 00:05:04,050
Kinesis or dynamic DB streams, the streaming or placing a photo in the S3 bucket with a synchronous

64
00:05:04,050 --> 00:05:04,620
invocation.

65
00:05:04,620 --> 00:05:05,730
The Lambda function.

66
00:05:05,850 --> 00:05:12,240
And this is very good illustration from different type of applications or services invoking the lambda

67
00:05:12,240 --> 00:05:16,680
functions with different invocation types, synchronous, asynchronous or streaming.

68
00:05:16,680 --> 00:05:22,800
So let me click icons and please see that how lambda execution environment creates and log the console

69
00:05:22,800 --> 00:05:26,100
after finished the function environment will be destroyed automatically.

70
00:05:26,280 --> 00:05:30,990
I'm going to click these buttons and see that.

71
00:05:32,410 --> 00:05:37,930
You can see that these execution environments are increasing and when the function finished, these

72
00:05:37,930 --> 00:05:39,880
are destroying automatically.

73
00:05:40,000 --> 00:05:46,810
This is very good illustration that you can see very well how the location increased by automatically

74
00:05:46,810 --> 00:05:54,070
from a place and how this destroyed automatically from the scaling up and scaling down.

75
00:05:54,250 --> 00:05:57,700
So this is the power of the servers competing with a lambda.

76
00:05:57,730 --> 00:06:03,100
It is totally auto scaling and handle incoming events with different loads automatically scale with

77
00:06:03,100 --> 00:06:05,550
creating lambda execution environments.

78
00:06:05,560 --> 00:06:10,510
So if you click the next button, which is the step by step visit.

79
00:06:10,540 --> 00:06:13,330
Click next scale seamlessly.

80
00:06:13,870 --> 00:06:19,030
So I'm going to click this button and this time we will see how to scale seamlessly.

81
00:06:19,060 --> 00:06:25,690
Lambda Scale up and down automatically to handle our workloads and we don't pay anything when our code

82
00:06:25,690 --> 00:06:26,590
isn't running.

83
00:06:26,770 --> 00:06:35,020
So the first 1 million requests or 4000 gigabyte seconds of compute per month are free because in this

84
00:06:35,020 --> 00:06:41,110
demo are based on the 128 megabyte function with a one second invocation duration.

85
00:06:41,110 --> 00:06:44,230
So this is really powerful features of a lambda.

86
00:06:44,260 --> 00:06:51,190
See that again, I'm going to send different request invocations from other resources and this will

87
00:06:51,190 --> 00:06:59,020
be calculated in locations and potential cost in here of course are very low because when we are clicking

88
00:06:59,020 --> 00:07:04,480
one button in here, one in location, this will be sending 1 million requests.

89
00:07:04,480 --> 00:07:07,870
So that's why this is very a great feature.

90
00:07:07,930 --> 00:07:13,390
And see that even in location count is two millions or five millions.

91
00:07:13,390 --> 00:07:17,050
Cost is less than $0.05 almost.

92
00:07:17,080 --> 00:07:25,330
Okay, let's continue to our step by step visit and create our function and see what's happened.

93
00:07:25,360 --> 00:07:29,980
So yes, when we click the create function, you can see the create function page.

94
00:07:29,980 --> 00:07:33,070
Now we are ready to create our lambda function.
