An AWS Cloud architecture for web hosting — 3 Tiers

Nhan Cao
4 min readJan 8, 2022

Public Terraform source:

Best practice: https://docs.aws.amazon.com/whitepapers/latest/web-application-hosting-best-practices/an-aws-cloud-architecture-for-web-hosting.html

I saw some mistakes of Full-stack developers about web hosting. To deliver better app should check some points:

  • Make sure you optimize the app logic first. (redundancy requests, too much bad interval calling, asynchronous callback handling, crashing loop, heavy process — need split them to smaller logic or put to async response with queue, unsafe type, …….. a lot =]] )
  • Design infrastructure before deployment, estimate and make sure the arch scalable, upgradeable, fault tolerance and high availability
  • Stress-test and security checking the system before live. (Spoofing email, Leak server IPs, WAF, Rate limiting, Bad url request, user agent, CDN to cache big/static files, ….)

About scaling application, I suggest you should consider about microservices approach:

--

--