High Availability Architecture with AWS CLI
For Configuring Web Server on EC2 Instance so first we have to launch the instance using AWS CLI
👉Launching the EC2 Instance
👉Creating a EBS Volume and Attaching to the EC2 Instance.
👉Web Server Configuration-> Install the httpd software so that client can use the services
👉Storing the data inside the document root initially this document root is in slash drive in which the data is not persistent So to make it persistent in above steps we attach EBS Volume when we attach any storage 3 steps should be performed.
1.Create the Partition
2. Format the Partition
3. Mount the Partition to the Document Root So that it uses the EBS Volume and thus data become persistent
👉We solve the Challenge by attaching EBS Volume But here also One more challenge comes in The challenge of Durability and Availability It lags in providing 99% Durability and Availability So the Requirement comes up to solve the challenge So Amazon AWS provides S3 Object Storage as a Service, and make the bucket public so that URL can be accessed
👉After Creation of Bucket we store static images, videos inside the bucket and these files are known as object.
👉We solve Durability and Availability consider if client living far away and hit to our server then it is possible he will face high latency and less security again to solve this challenge Amazon introduces Cloudfront as a Service which uses the concept of Content Delivery Network.
👉Amazon CloudFront is a fast content delivery network (CDN) service that securely delivers data, videos, applications, and APIs to customers globally with low latency, high transfer speeds, all within a developer-friendly environment. CloudFront is integrated with AWS – both physical locations that are directly connected to the AWS global infrastructure, as well as other AWS services.
👉Finally place the Cloud Front URL on the web app code for high security and low latency.
Thank You for Reading!!!!
Awesome :)