Setting up a public web application on amazon web services

First of all, I'm pretty new to AWS, so my question may seem very amateurish.

I am developing a web application that needs to be retrieved globally and am currently hosting it on Amazon. Since the application is still under development, I installed it in the Singapore region. However, when I test the application, I get a good response time from locations on the east side of the globe (~ 50 ms). However, when I check the response time from the USA, it is ~ 550 ms. Therefore, we decided to have 2 copies, one in Singapore and one in the USA. But I can’t understand how to handle data replication and load balancing by region. The elastic beanstalk allows me to do this only in a certain region. Can someone explain how I can achieve global accessibility for my web application. The following are the services that I currently use. 1. Amazon EC2 2. Amazon S3

I need database replication and S3 file replication. It would also be great if there was a way when I just need to deploy my application in one place, and the changes are reflected in all the instances that we will have on the globe.

+1
amazon-s3 amazon-web-services amazon-ec2 replication
source share
1 answer

Before spending a lot of time and money building redundant servers in different regions, you might want to make sure that you are not able to achieve performance improvements simply by using AWS Cloudfront:

Amazon CloudFront uses a network of extreme locations that cache copies of popular files close to your viewers. Amazon CloudFront ensures that end-user requests are served by the closest edge of the location. As a result, requests are sent over shorter distances to request objects, improving performance. For files that are not cached at the edge of the location, Amazon CloudFront maintains a constant connection with yours so that these files can be extracted from the server source as quickly as possible. Finally, Amazon CloudFront uses additional optimizations - for example, a wider initial TCP congestion window - to provide better performance when delivering your content to viewers.

http://aws.amazon.com/cloudfront/faqs/

The best part is, you can set it up and check it out in a very short time and for very little money. Obviously, this will not solve all the performance problems, especially if the application is running in a database, but this is a good way to take care of the "low hanging fruit" when trying to speed up your website in different places around the world.

+1
source share

All Articles