What is Cloudfront ?
AWS provides various services to the client to perform their work. Amazon CloudFront is one of them. It is a web service that is useful for delivering content at low latency and high transfer speeds to business and web application developers.
What is the purpose of creating it ?
The purpose of creating it is to provide high speed and low latency to the content. As we know that everyone wants fast connection and reach to the content but sometimes it isn’t possible to do it due to availability of sources. In this condition Aws Cloudfront work as a catalyst.
How does it work ?
When we find something on the internet. We have to go through various web sites. Who servers are located at some place on the globe. It takes time to respond on the basis of distance. If we try to access the web server from a remote location it takes more time than a nearby server. To solve this problem we can create various servers all around the globe but it is costly. For this AWS introduced a service of Amazon cloudfront. In this service aws prove a Edge location (a type of data center which is not real).
The Edge location stores fetch data from origin(origin is base location or server were all data are saved).
And on initial requests, it takes longer than after one.
There are two type of Edge location are : –
- Regional edge location : no of point are 11
- Edge location : no of points are 216
Regional edge location stores date longer than edge location.
Step-by-step lab of cloudFront.
How to access Amazon Cloudfront ?
These are the ways-
- AWS Management console
- AWS SDKs
- Cloudfront API
- AWS Command Line Interface
First of all create a s3 bucket
Go into the bucket and add file or upload file.
- Go to the cloudfront
And create it.
- Add the s3 bucket name to the domain name.
- No need to change in Default cache
Just click on create.
Congratulation you created it.