
上QQ阅读APP看书,第一时间看更新
Presentation layer
Static files may be served from numerous places. In our case, we will use two different AWS services which will provide respectable performance shipping assets down to the client, as well as fault tolerance and caching, among other things. Our HTML, CSS, and JavaScript files will all live in an S3 bucket. We will then create a CDN using CloudFront, AWS's CDN offering. CloudFront will not only give us better performance than S3 by itself; we will gain the ability to globally distribute and cache our content, in addition to serving files from our very own custom domain using a free TLS certificate from AWS Certificate Manager.