AWS Global Accelerator Hands On

Deploying a solution with global users has constraints as users from around the world are trying to access it. This even becomes more difficult as the application is deployed in one region. Users from Europe, America, Africa etc trying to access an app…


This content originally appeared on DEV Community and was authored by Opeyemi Jokanola

Deploying a solution with global users has constraints as users from around the world are trying to access it. This even becomes more difficult as the application is deployed in one region. Users from Europe, America, Africa etc trying to access an application over the internet will experience latency due to many hops through the router. Going through these hops can create the risk of lost connection. Users around the world need to access the content as quickly as possible and not experience latency. The solution lies in going through the Amazon infrastructure, using the AWS Global Accelerator. The AWS Global Accelerator leverages Anycast IP(this means that all servers hold the same IP address and the client is redirected to the closest one).

The AWS Global Accelerator works by leveraging the AWS internal network to route to the Application using Edge location, accessing the Application load balancer. The AWS Global Accelerator works with Elastic IP, EC2 instances, ALB(Application load balancer), and NLB(Network load balancer), which can either be private or public. The Global Accelerator ensures consistent performance, health checks, and security. The use case for the AWS Global Accelerator includes gaming, IoT, VoIP, and HTTP that require static IP addresses globally and fast failover.

Let us see how the Global Accelerator works (NB: this is not a free AWS service).

We need to first create our application by going to the EC2 Instance service

Image description

-Launch Instance

Image description

-Choose the free tier

Image description

-Create Security Group and Launch Instance

Image description

-Launch another EC2 instance in a different Region following the same process as above. Test if both instances are working by copying Public DNS in a browser(should get the Hello World prompt)

Image description

-Navigate the AWS console to AWS Global Accelerator

Image description

Image description

-Create Listeners

Image description

-Add End Point and Health checks for both Instances

Image description

Image description

-Then add End Point Group afterwards

Image description

-Create Accelerator
Image description

-Copy the DNS name, and paste into a browser to test it. I got this below as it is the closest and fastest Region to me.

Image description

-To test if this works, I used a VPN to change my location to Singapore.

Image description

Image description

-To see if the Global Accelerator can serve content all over the world, we will make the 2nd EC2 instance(Mumbia) unhealthy by deleting the security group.

Image description

Image description

-We can see the EC2 instance has become unhealthy. To test if the Global Accelerator works, we need to refresh the page.

Viola, we got a response from eu-east-1.

Image description

That's it folks, everything works perfectly as expected.
Till you read from me again, don't forget to clean up your deployed resources. Cheers!!!


This content originally appeared on DEV Community and was authored by Opeyemi Jokanola


Print Share Comment Cite Upload Translate Updates
APA

Opeyemi Jokanola | Sciencx (2025-01-01T23:51:43+00:00) AWS Global Accelerator Hands On. Retrieved from https://www.scien.cx/2025/01/01/aws-global-accelerator-hands-on/

MLA
" » AWS Global Accelerator Hands On." Opeyemi Jokanola | Sciencx - Wednesday January 1, 2025, https://www.scien.cx/2025/01/01/aws-global-accelerator-hands-on/
HARVARD
Opeyemi Jokanola | Sciencx Wednesday January 1, 2025 » AWS Global Accelerator Hands On., viewed ,<https://www.scien.cx/2025/01/01/aws-global-accelerator-hands-on/>
VANCOUVER
Opeyemi Jokanola | Sciencx - » AWS Global Accelerator Hands On. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/01/aws-global-accelerator-hands-on/
CHICAGO
" » AWS Global Accelerator Hands On." Opeyemi Jokanola | Sciencx - Accessed . https://www.scien.cx/2025/01/01/aws-global-accelerator-hands-on/
IEEE
" » AWS Global Accelerator Hands On." Opeyemi Jokanola | Sciencx [Online]. Available: https://www.scien.cx/2025/01/01/aws-global-accelerator-hands-on/. [Accessed: ]
rf:citation
» AWS Global Accelerator Hands On | Opeyemi Jokanola | Sciencx | https://www.scien.cx/2025/01/01/aws-global-accelerator-hands-on/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.