Skip to content
Guest
Cloud & DevOps · Course Syllabus Show lessons
Reliability · 8 min read · Intermediate

Cloud Cost Control & Vertical vs. Horizontal Scaling

Know when to scale up one server vs. add load balancers, CDNs, and managed databases without wasting budget.

What you'll learn

  • Put static assets behind Cloudflare/CDN caching first
  • Measure real bottlenecks before splitting into microservices
  • Set cloud billing alerts so surprises never happen

Overview

Know when to scale up one server vs. add load balancers, CDNs, and managed databases without wasting budget.

Code Example

Scaling Ladder:
1. Static CDN / Cloudflare in front of Nginx (free, huge offload)
2. SQLite WAL mode + indexes + query caching (handles 10k+ daily users)
3. Vertical scale VPS (2GB -> 4GB -> 8GB RAM)
4. Managed Postgres + multiple stateless app instances behind a load balancer

Key Takeaways

  • Put static assets behind Cloudflare/CDN caching first
  • Measure real bottlenecks before splitting into microservices
  • Set cloud billing alerts so surprises never happen

Quick Check

Check Your Understanding

Score: 0 / 1

1. What is usually the cheapest, highest-impact first step to handle a sudden viral traffic spike on a web app?

Study Workspace

Finished this lesson?

Your progress is saved locally in your browser, no account needed.

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind