Code of the Day
AdvancedScaling & Performance

Lab: scale deliberately

Apply measure-first, the scaling axes, statelessness, and bottleneck reasoning.

Lab · optionalFundamentalsAdvanced9 min
By the end of this lesson you will be able to:
  • Measure before optimising or scaling
  • Distinguish vertical from horizontal scaling
  • Connect statelessness to scaling out

Optional scenario lab. Scaling is a measured decision, not a reflex. Practice the reasoning.

Scenarios: scaling and performance

  1. 1.
    An endpoint feels slow. Before optimising or adding servers, you should:
  2. 2.
    Adding more identical machines behind a load balancer is:
  3. 3.
    Horizontal scaling is cleanest when your services are:
  4. 4.
    Fixing an O(n squared) algorithm can do more for performance than adding hardware.

Measure first, scale out with stateless services, and remember the biggest lever is often the algorithm.

Finished reading? Mark it complete to track your progress.