Cloud Architecture
Architecture on cloud platforms balances reliability, cost, and operability. Use this guide when mapping services, data stores, and deployment automation flows.
Layered model
| Layer | Components | Notes |
|---|---|---|
| Edge | CDN, WAF, rate limits | Cache static assets; protect APIs |
| Compute | Containers, serverless, VMs | Prefer stateless tiers |
| Data | SQL, NoSQL, object storage, caches | Define backup and retention |
| Platform | IAM, secrets, VPC, DNS | Shared across environments |
Health and readiness
export function health(): Response {
return Response.json({
status: 'ok',
ts: Date.now(),
service: 'api',
});
}
Expose /health and /ready for load balancers and observability checks.
Operational checklist
- Multi-AZ or regional redundancy for critical paths
- SLOs defined before launch; alert on error budget burn
- Run open-source dependencies with pinned versions
- Document runbooks alongside developer docs for SEO-friendly public status pages