Heroin and welcome back now in the earlier video we were discussing about the landlady.
Now we're discussing more into a theoretical perspective.
However, with your little becomes difficult to see what exactly original request is or how exactly
it looks in a practical manner.
So what I'll do, I'll quickly give you a demo on how exactly language would look like if you go out
and you configure within a dabblers environment.
So it integrates with the cloud.
Now, what I have I have a sample cloud distribution here and I have a simple Alamdar function.
Basically, this is the lamda function that we use at LAMDA added.
Now, within this cloud distribution, if you look into the distribution, you go to behaviors and currently
that is one behavior.
Now let me quickly do an editorial.
So you have your protocol, police and media, others.
But if you look down at the Lambda Function Association, there's a cloud filled event.
So you have various types of viewer request, viewer response or agent requests, audience response.
Now, depending upon the use case that your lambda at the edge function would be doing.
You will have to place it at one of these locations.
All right.
So in my case, this specific function is placed at the original request or, you know, if you look
into my lambda function, oir so this is my function.
And if you go back down, this is the code which is used at the Lambda d.H function.
Now along with that.
Let me also show you the S3 bucket.
Now if you're looking to the cloud distribution unit, it is basically let's let's come out of this
now.
If you look into the origin, it has the origin of the zero zero seven hyphen website S3 bucket.
Now within the Estragon.
So I do have a bucket column space 007 Hafer website.
Now within this I have a direct recoilless experiment group.
And within this there are two image files which represent, you know, they fly directly, open up the
cloud distributions domain name.
Let's open this up.
You see the image automatically load.
However, ideally, if I do not have a lambda at the edge function or, you know, density, then it
is done by the lambda DH function.
If that function would had not been present, you would have to specify the entire array, like you
would have to specify slash experiment a friend group.
Then you will have to specify control hyphen pixel like control hyphen pixel or something like this.
But since we have the data function which is listening at the original request, we do not really have
to specify this during this function.
Takes care of that.
Now if you look into this function, it basically says that if the experiment is not present, it basically
gives an output of experiment.
Kookie has not been found.
He throws a nice where you have a random function and experiment.
You can either be part experiment or part experiment B now part experiment.
It is basically if you go back up but experiment, it is the control pixel.
It says experiment hyphen group slash controlled pixel or GBG.
And if at this part experiment B, then it is experiment have a group, but it may not be a lot GBG.
So it generally whenever we load and cookies, not one of this image is automatically taken into consideration
by the d.h function and our image will load accordingly.
Now this lambda the edge function, if you go into actions, you do have the option to deploy Aderet
Lambda at the edge and you can specify the distributionally.
You can also specify the cloud from Evanthia like Origin Regress or in response to your request and
viewer response.
All right.
This is one thing.
Now, the second thing that I wanted to show you typically, if you work with Landladies, is that whenever
someone visits your page and you have the Lambda DH function ongoing.
So this specific log area, so currently you see it is outputting a console dot log.
So this output will be at the region where that request came from and where the education is.
So currently I'm in Mumbai and Mumbai does have an edge location of cloud frame.
So this specific log associated with that query that we made would be stored in the cloud watch logs
in the Mumbai region.
So let's look into that.
As well, so let me open up the cloud watch so within the cloud watch console, I do have a large group
of Idalis lamda the US is to undertake.
So it is basically the lamda function.
And within that you have if you look into the log, you it basically states that the experiment cookie
has not been through throwing the night and it is automatically setting the request.
You are right to experiment.
Hyphen group control hyphen pixel GBG.
So this year is being set by the landlady's function.
If you remember, we never said this specifically.
What all we did was we made a request to the cloud distribution and that's about it.
We never specified the euro.
So was this a specific request?
Goes it goes to the lambda function, lambda functions, checks, if the jury is present or not.
If you are not present, then it will generate one of the other depending upon the mathematical function,
and it will automatically set Misuari and you will get the output, according to the Yurevich is said,
by the Lambda DH function.
So this is the high level overview on how exactly Lambda at the edge might look like.
I hope this video has been informative and I look forward to seeing the next video.