Hosting models compared
- Shared hosting — cheapest, but you compete with neighbors for resources. Fine for static sites and low-traffic blogs.
- VPS — dedicated virtual server with guaranteed resources. Predictable cost, requires you to manage the stack.
- Dedicated servers — entire physical hardware. Only justified for very specific performance or compliance needs.
- Cloud (IaaS/PaaS) — elastic resources via API. Pays off for variable traffic, global delivery, or rapid iteration.
- Serverless — per-execution billing, scales to zero. Great for spiky workloads, expensive at sustained scale.
Scalability without surprises
Scale vertically until it hurts, then scale horizontally. Vertical (bigger instance) is simpler and avoids distributed-systems complexity. Horizontal (more instances behind a load balancer) is necessary above a certain size, but only works if your application is stateless or session state is externalized to a shared store.
Uptime, redundancy, and the cost of nines
99% allows 3.65 days of downtime per year. 99.9% allows 8.76 hours. 99.99% allows just 52 minutes. Each additional nine roughly 10x's the cost of operations: multi-AZ, then multi-region, then active-active with automated failover. Pick a target that matches the business impact, not the bragging rights.
Performance fundamentals
- Geographic proximity matters. Put the application close to users or put a CDN in front.
- Caching beats compute. Cache at every layer: CDN, reverse proxy, application, database query.
- Asynchronous work where possible. Queue long-running operations so the user-facing request stays fast.
- Monitor real-user metrics, not just synthetic benchmarks. The shape of real traffic surprises everyone.
Cost discipline
Cloud bills balloon by default. Tag every resource, set per-project budgets with alerts, right-size instances quarterly, and prefer reserved or committed-use pricing for predictable workloads. The biggest savings usually come from deleting unused resources, not from heroic architectural changes.