WordPress on AWS: smooth and pain free
I’m not a fan of WordPress, as it is neither cloud-ready nor serverless. That’s why this blog runs on CloudFront and S3 and is built by Hexo. But 25% of all websites are proudly published with WordPress. You will learn about the easiest way to run WordPress on AWS . Including fault tolerance and scalability. The following figure shows the architecture of a fault tolerant and scalable WordPress environment on AWS.
Read on to learn more!
The problem
Wordpress is a PHP application using two different data storages: a MySQL database and files on disk. Storing files on disk is a problem if you want to make use of a fleet of EC2 instances to run WordPress in a fault tolerant and scalable fashion.
The following example and figure are illustrating the problem.
Mary is uploading a new image for her blog post. The image file is stored on EC2 instance number 1.
Mary is reading through her article. EC2 instance number 1 is answering her HTTP request to get the image.
Bob is reading Mary’s article. EC2 instance number 2 is answering his HTTP request with a 404 Not Found error, as the image is stored only on EC2 instance number 1.
Tricky, you need to find a way to either synchronize
Source: https://managewp.org/articles/13732/wordpress-on-aws-smooth-and-pain-free
source https://williechiu40.wordpress.com/2016/11/01/wordpress-on-aws-smooth-and-pain-free/