Home > Software engineering >  What will be a good architecture for wordpress in AWS, Currently i have it in an EC2 instance and da
What will be a good architecture for wordpress in AWS, Currently i have it in an EC2 instance and da

Time:10-22

My Current set up contains an EC2 instance with wordpress installed and its database in docker container locally, the service is available in localhost:80.

What all the improvements i can make on top of this by considering High availability, security, data persistence etc? Can we use nginx along with this?

CodePudding user response:

As already answered Lightsail is the easiest and quickest solution, but if you need to have full control over high availability and data persistence you can start from here:

https://docs.aws.amazon.com/whitepapers/latest/best-practices-wordpress/reference-architecture.html

This is a reference architecture for Wordpress with a scalable web tier. It points to a Github project with a set of CloudFormation templates to get you started.

There is also a Quick Start from Bitnami.

From how I see it, this architecture is optimized for scalability and high availability and not cost-reduction.

CodePudding user response:

Amazon Lightsail is the better one compared to EC2.

More recently Amazon has introduced the Lightsail product in response to popular platforms like Digitalocean. In the background it runs some of the same core services like EC2 and RDS but is an abstraction on top that removes many of the complexities. Lightsail allows your to provision servers without the complexities and knowledge required with their EC2 services. It is a product that competes with Digitalocean in allowing developers to be productive without getting bogged down in every details of provisioning. For example, many of the networking details like virtual private cloud (VPC) are removed and taken care of for you as opposed to EC2 where you are responsible. It’s a much easier way to get started but with limitations.

Recommendations

In my overall experience in using both EC2 and Lightsail I would recommend using Lightsail for any dev or staging environments. It can also be good for side project, personal blogs or low traffic websites. But if you need to run a high production website, require high availability or any customization then EC2 is the only choice.

I think Lightsail is a good addition to the AWS family of products. It has a different audience in mind than the traditional AWS users. It reduces complexity and allows quick start and go projects. I’ve preferred it over EC2 in many of my projects for Wordpress and will likely continue using it.

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-tutorial-launching-and-configuring-wordpress

  • Related