Amazon Web Services - Introduction to CloudFront CDN Last Updated : 27 Mar, 2023 Comments Improve Suggest changes Like Article Like Report Amazon CloudFront is a global web service that allows you to securely deliver content to your users with low latency and high availability. It does so by further delivering content safely. This service helps to built high performance and security in your application. CloudFront works for both static and dynamic content such as .html, .css etc. CloudFront delivers the content worldwide with best possible performance. It also helps in speedy distribution of content. Cloudfront CDN How is this done?Cloudfront uses edge locations to serve the user's request. Origin server: It can be an S3 bucket, EC2 instance, or your own HTTP server where files or objects are stored. Furthermore, origins can be ELB (Elastic load balancer) or Route 53.Edge location: This is where the contents are cached. The data expires after a certain amount of time. After the data expires, the latest version of data is accessed from the origin server. Amazon regularly adds edge locations.Regional Edge cache: Regional edge cache has a larger cache as compared to edge location. It can make data accessible even faster when users are requesting less popular content. Since the data stored at the edge location expires in a definite amount of time ( 24 hours expiration period by default, you can change the expiration period by setting cache-control header), edge locations can fetch data from regional edge cache rather than accessing it from the origin server thus retrieving the data even faster. Edge location; Regional Edge cache and origin serverThe user requests the data from the nearest edge location.If the cached data is present at the edge location then the request is served from the edge location.If the data is not present at the edge location then it is fetched from the regional edge cache (regional cache has a larger cache width).In the absence of a regional edge cache, the data is fetched directly from the origin server after expiration. But using regional edge cache provides low latency.To know from which origin server the CloudFront needs to fetch the files, it uses CloudFront distribution. Use cases:Following are some of the use cases of Cloudfront: When you have users distributed worldwide, using cloudfront is a good practice to reduce latency.Cloudfront can help your users access the popular content of your website with low latency or in less amount of time.Cloudfront can be used to serve live and on-demand video streaming.Acceleration of static content deliveryEncrypts fields via system processingBenefits:Following are the benefits of using cloudfront: Cloudfront can be used to deliver both static as well as dynamic content with faster performance.Protection against DDOS attacks.Protection against layer 3 and 4 network attacks.Cloudfront can be integrated with AWS WAF for application-layer protection.You can restrict your content access.CloudFront is cost effective as it works on pay-as-you-go pricing model.Provides an option to encrypt your data with a free custom TLS certificate from ACM (Amazon Certificate manager) or using your own imported certificate. Comment More infoAdvertise with us Next Article Amazon Web Services - Introduction to CloudFront CDN T tanishkaashi567 Follow Improve Article Tags : Geeks Premier League Amazon Web Services DevOps Geeks-Premier-League-2022 Cloud-Computing AWS +1 More Similar Reads Introduction to Amazon Web Services Amazon Web Services (AWS) is one of the world's leading cloud platforms in providing the web services of various domains. AWS follows the trends of digital IT and comes up needy services with optimized performances covering a wide range of services from Compute to Storage. It covers a wider range of 12 min read Amazon Web Services - Introduction to Amazon FSx In this article, we will look into Amazon's fully managed native File Server service called Amazon FSx, and it is integrated with the rest of AWS. So what does fully managed mean? It means that you no longer need to manage the hardware or the software to provide File server services to your users. A 5 min read Amazon Web Services - Introduction to EC2 Spot Instances In this article, we will look into the process of profiling your applications and workloads to confirm if they can take advantage of Amazon EC2 spot instances. Spot instances are spare compute capacity available to you at steep discounts (often as much as 90% cheaper) compared to on-demand prices. T 8 min read Amazon Web Services - Introduction to Amazon CloudWatch Synthetics In this article, we will get an introduction to Amazon Cloudwatch Synthetics. With this feature, you can create different kinds of Canaries to continually verify your user experience even when you don't have traffic, monitor and test for unusual behavior, and trace issues to their source for faster 3 min read Amazon Web Service - Introduction to API Gateway Firstly, API stands for Application Program Interface. An API Gateway is a management tool that acts as an interface between users and microservices. The Amazon API Gateway is an AWS service that allows users to create, publish, secure, maintain and monitor APIs at any scale. You can create APIs in 12 min read Amazon Web Services - Introduction to Amazon Lightsail Amazon LightSail is an AWS service that provides the a gateway for simplified cloud hosting helping the AWS users. It act as a user-friendly cloud platform that is designed for easy hosting and management of virtual private servers (VPS). With the LightSail service users can quickly develop and mana 8 min read Amazon Web Services - Restricting S3 Access Only From CloudFront In this article, we will look into how to restrict access to Simple Storage Service (S3) from CloudFront only. When developers are using S3 REST API endpoint as the origin to CloudFront, they can restrict access to S3 from CloudFront only by setting up the Origin Access Identity(OAI). This is a spec 2 min read Amazon VPC - Introduction to Amazon Virtual Private Cloud Amazon VPC or Amazon Virtual Private Cloud is a service that allows its users to launch their virtual machines in a protected as well as isolated virtual environment defined by them. You have complete control over your VPC, from creation to customization and even deletion. It's applicable to organiz 8 min read Amazon Web Services - Correctly Accessing CloudFront from Amazon S3 Sometimes users of Amazon Cloudfront get a 403 Access Denied error when using an Amazon S3 website endpoint as an origin in Amazon CloudFront distribution. So, in this article, we will work through resolving this error. To resolve the Access Denied Error follow the below steps: Step 1: After signing 2 min read Introduction to Amazon Route53 In Simplest terms, cloud computing means storing and accessing the data and programs on remote servers hosted on the internet instead of the computerâs hard drive or local server. It is also referred to as Internet-based computing. In this article we guide on discussing what is Amazon Route53, how d 13 min read Like