Ecommet

System design

Module 4

Edge and Traffic

Everything between the user and your servers: CDNs, proxies, load balancers and their algorithms, API gateways and rate limiting.

  • 6 topics
  • Quiz on every topic

0% read

  • 0 / 6topics read
  • –average quiz score
  • 0 daysreading streak
  • 0saved to revise

Your progress is saved in this browser. Nothing is sent to us.

Module 04

Edge and Traffic

0 / 6 read

  1. 4.1 Read

    Content Delivery Networks (CDNs)

    A CDN keeps copies of your files on servers around the world so users download them from nearby. Learn how pull and push CDNs work, what makes a good cache key, and how to update content safely.

    Beginner 6 min

  2. 4.2 Read

    Forward and Reverse Proxies

    A proxy is a middleman for network traffic. A forward proxy acts for clients; a reverse proxy acts for servers, handling TLS, caching, compression and routing in front of your app.

    Beginner 4 min

  3. 4.3 Read

    Load Balancers

    A load balancer spreads requests across many servers, skips unhealthy ones and lets you add capacity without users noticing. Learn layer 4 vs layer 7, health checks, sticky sessions and how to keep the load balancer itself up.

    Beginner 4 min

  4. 4.4 Read

    Load Balancing Algorithms

    How a load balancer picks a server: round robin, weighted round robin, least connections, hashing and the "power of two choices". When each works, when it fails, and tested code for the main ones.

    Intermediate 6 min

  5. 4.5 Read

    API Gateway

    An API gateway is the single front door to many backend services. It routes requests, checks authentication, applies rate limits and can combine several calls into one. Learn what belongs in it and what does not.

    Intermediate 4 min

  6. 4.6 Read

    Rate Limiting

    Rate limiting caps how many requests a client can make in a period, protecting your system from abuse and overload. Learn token bucket, leaky bucket, fixed and sliding windows, how to share limits across servers, and what to send back.

    Intermediate 7 min

All modules