Member-only story
AWS Architecture
1. User: User types a domain like google.com in the browser and hits enter.
2. Route 53 (DNS): Request first goes to Route 53, which is AWS DNS service.
- It resolves
google.comto an IP like142.251.223.238 - It routes the user to the correct server.
3. CloudFront (CDN): Then it goes to CloudFront, the CDN.
- It serves all static files. (Images, CSS, JS)
- Files are cached at edge locations close to the user, so the site loads very fast.
4. API Gateway: From CloudFront, the request goes to API Gateway. This is the main entry point for your backend.
- Routing: Decides which service the request should go to.
- Auth: Checks if the user is authenticated
- Rate Limit & Throttling: Protects your backend from too many requests
5. Backend: API Gateway forwards the request to the Backend. It has 3 main options:
- EC2: A virtual server where you manage RAM, Storage, and Server yourself.
- ECS: Used to Manage & Run Docker containers.
- Lambda: Serverless. No server to manage, you just run code and pay per use.
6. Async Request (SQS): If a task doesn’t need an immediate response (like…










