Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

End-to-End Static Website Hosting on AWS S3 with CloudFront CDN and Automated Cache Invalidation via Lambda


AWS CloudFront architecture Project

BookMyShow Clone 🎫

It is an clone website of BookMyShow that developed just using HTML, CSS and JavaScript. BookMyShow is a webiste used to buy Movie tickets in online.

Build with ⚒️

-> HTML | CSS | JavaScript |

How to run Locally 🖥️

  1. Before the following steps make sure you have git installed on your system.

  2. Clone the GitHub project in your local directory with command git clone https://github.com/vu3tpz/BookMyShow-Clone or you can just download the code and unzip it.

git clone https://github.com/arumullayaswanth/aws-s3-cloudfront-lambda-automation.git
  1. Open index.html file in any Browser.

Screen Layout 🎟️

Screenshot (41)

Screenshot (42)

Screenshot (43)

Screenshot (44)

The End..⚔️

Based on the provided source, a CloudFront project was discussed which aimed to improve latency and overcome latency issues by configuring a CloudFront application. Key aspects of this project as described in the source include:

• Utilization of AWS Edge Locations: The project leveraged AWS edge locations offered by CloudFront. The concept is to keep content nearby these edge locations. When creating a CloudFront distribution, you have options to select whether to store content in specific edge locations or all edge locations. By selecting all edge locations, content is stored near many points globally, allowing clients to access it from nearby locations, which directly improves latencies.

• Addressing Content Updates and TTL: The source mentions the challenge related to Time To Live (TTL) settings. If developers make changes to the source code, users might still access the old data for a period determined by the TTL (e.g., one hour). To ensure users immediately get the updated content, a mechanism is needed to refresh the edge locations.

• Implementing Invalidations via Lambda Function: To address the content update issue, the project implemented a lambda function. This function is designed to perform invalidations. Invalidations are crucial because they update the new content into the edge locations instead of the old content immediately after developers update the source code.

• Event-Driven Trigger: The lambda function is triggered by an event rule. This rule is set up to run the lambda function automatically whenever developers put data into a specific bucket. Once triggered, the lambda function runs the invalidations and updates the new content to the edge locations. This particular project used the CloudFront configuration with edge locations and an automated invalidation process via a lambda function triggered by bucket updates to ensure low latency and prompt content delivery.

About

End-to-End Static Website Hosting on AWS S3 with CloudFront CDN and Automated Cache Invalidation via Lambda project

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages