Architecture courtesy: acloud.guru
Sample AWS fault tolerant architecture in AWS demonstrated using wordpress deployment.
- Hosted in single region.
- 2 security groups setup in a VPC. One web facing – Web DMZ and other private – RDS security group.
- 2 Availability Zones leveraged.
- Multi AZ RDS leveraged for failover. If the primary fails, AWS automatically routes request to the fail over instance. Otherwise, failover instance is passive.
- Auto Scaling Group (ASG) leveraged to setup EC2 instances hosting wordpress across AZ to deal with traffic spikes.
- WordPress sync established between EC2 instances via S3 bucket.
- Media assets in WordPress EC2 is copied over to S3 bucket and served to end-users via CloudFront CDN. Httpd has been setup in EC2 to rewrite URLs to serve the media assets via CDN.
- DNS setup via Route53.