CodePudding user response:
Static resourceSingle S3 + cloudfront
See http://docs.aws.amazon.com/zh_cn/AmazonCloudFront/latest/DeveloperGuide/DownloadDistS3AndCustomOrigins.html
More detailed configuration, such as
* *.jpg -> http://xxx.cloudfront.net/. JPG
/*. *. CSS js -> http://xxx.s3-website-us-east-1.amazonaws.com/*. CSS
Dynamic resource to
Single region ec2 + cloudfront
Later if the bottleneck is found in ec2 - "cloudfont section
Then look at whether by deploying more region ec2 to solve