Boost Your Application's Performance and Availability with AWS Global Accelerator
Enhance your application's accessibility and efficiency with AWS Global Accelerator. This service improves your app’s availability and performance by using Anycast IP addresses to route traffic through the nearest AWS edge location, reducing latency and boosting response times. Quick to adapt and geographically optimized, Global Accelerator can enhance network performance by up to 60%. It also increases high availability by rerouting traffic away from troubled endpoints, ensuring minimal downtime and a reliable user experience. Upgrade to AWS Global Accelerator and give your applications a competitive edge in today's digital landscape.
For a Better Understanding, Let's Conduct a Simple Lab Exercise:
Launching a Website on an EC2 Instance Near Our Visitors to Demonstrate Amazon's Global Infrastructure
-> launch an EC2 instance and deploy a simple demo website with basic text content on it
If you're having trouble accessing your site on the EC2 instance, you may need to adjust the firewall settings. Simply go to the EC2 dashboard, navigate to Security Groups, edit the Inbound rules, and add a rule to allow HTTP traffic. Set the rule type to HTTP and the source to 'Anywhere' to ensure accessibility.
***Note: For a detailed guide on launching an EC2 instance, follow this blog.
***medium.com/@sahdevgrover02/step-by-step-gui..
Now, let’s set up the AWS Global Accelerator
Note : that this service is billed at an hourly rate of $0.025
write the name with no change and click next
-> Next, add listeners to the Global Accelerator. As users, when we route our traffic through the Global Accelerator, we need to specify the port number and protocol.
Typically, HTTP servers run on port 80. Without setting this port, clients will not be able to connect to the website.
Now, specify the endpoint, which means you need to define where your website is hosted. For instance, if your website is running in the ‘ap-southeast-2' region, you would set this as your endpoint.
Endpoint Type: Choose the service you wish to use; for example, in my case, it's an EC2 instance.
Endpoint Information: Select the specific instance you want to direct traffic to.
Weight Info: It refers to the distribution of network traffic among different endpoints within an endpoint group. When multiple endpoints are available, the weight value determines the proportion of traffic each receives. A higher weight means a greater share of the traffic, allowing for customized load balancing across your resources
So lets use global accelerator url or dns
Copy the dns/filename.html in browser
Now, let’s compare the time it takes to load the website with and without using Global Accelerator.
To measure the load time, experiment with these terminal commands:
curl 3.27.145.129/demoText.html
curl -w "%{time_total}" 3.27.145.129/demoText.html
These commands will show you how long it takes to retrieve the webpage.
Without Global Accelerator
With Global Accelerator
We can clearly see the improvement: without Global Accelerator, it took 1.04 seconds to load, but with Global Accelerator it loads in just 0.9 seconds
Although my site is quite small, you can still see a significant reduction in load time, which could be even more pronounced with larger sites.