Showing posts with label cdn. Show all posts
Showing posts with label cdn. Show all posts

Sunday, March 20, 2022

AWS Networking & Content Delivery - Cloudfront CDN

 

AWS Edge locations are data centers closer to Regions and their purpose is different from Availability Zone(AZ) Data Centers. These Edge Locations are for Content Delivery Network (CDN). Like in AZ you can create an EC2 instance but when we are using CDN service from AWS then it automatically decides the nearest Edge location on behalf of us. Cloudfront is the service meant for selecting edge locations to keep data (temporarily/on cache) such as media files, API, images, etc with the lowest latency and high throughput.
  1. Cloudfront caches and delivers dynamic content to end-users.
  2. It is a global service and NOT region-specific.
  3. You can define the Allow/Deny list of countries for Cloudfront distribution.
  4. It supports IPV6.
  5. You can enable the logging (s3 bucket).
  6. Whatever you put after configuring the CDN, it will automatically push to edge location data centers.
How it works:

Step 0: Create a file index.html in the S3 bucket (srcbucket) and provide public access to this file.

Step 1: Search Service CloudFront or Goto Networking and Content Delivery --> CloudFront

Step 2: Click on Create Distribution button.

Step 3: Define below properties

         Origin Domain: S3 bucket name(srcbucket)

         Origin Path: No change because of index.html file is not in any folder of s3 bucket

           Other properties are default no change.

          Price class:- Edge location with best performance 

Step 4: Click on Create distribution.


Fluentd

Open-source log data collector > why logs? - for compliance (auditing, company, business) - for security (transparency, monitoring, admin...