QuickDevGuide

Home › System Architecture

Scalability & Load Balancing — System Architecture

Vertical scaling adds more power to one server (more CPU/RAM). Horizontal scaling adds more servers. Horizontal scaling is preferred because it has no upper limit and provides redundancy. Load Balancing Load balancers distribute incoming traffic across multiple servers. Algorithms: Round Robin, Least Connections, IP Hash. Health checks automatically remove unhealthy servers from rotation. Popular tools include Nginx, HAProxy, and cloud-native ALBs. Caching & CDNs Caching (Redis, Memcached) stores frequently accessed data in memory, reducing database load by orders of magnitude. CDNs (Content Delivery Networks) like CloudFront and Cloudflare cache static assets globally for faster delivery to users worldwide.

Key Takeaways