Skip to content

Scalability

Adding capacity is easy to say and hard to do well. A bigger machine runs out, more machines need work that can be split, state held by one instance gets in the way, and the instances that are added automatically arrive late. This module takes those one at a time, with the numbers that show what each costs.

You will sort statements into scaling up and scaling out, into stateless and stateful, and into the three places a session can live. You will run an autoscaling policy against a sudden spike, a ramp and a daily wave, and change its target, its start-up delay, its scale-in delay and its limits to see what is rejected and what it costs. Every lesson has a “what happens if” moment.

  1. Scaling up and scaling out (16 min). A bigger machine or more machines, what each costs, and why one shared queue waits less than several.
  2. Stateless services (15 min). Why any instance must be able to answer any request, where the state goes, and what is lost when instances are removed.
  3. Session handling (18 min). Sticky sessions, a shared store and a signed token, and how to size a session store.
  4. Autoscaling (25 min). Target tracking, the start-up delay, the scale-in delay and the limits, and why a sudden spike still hurts.
  5. Recap and quiz (12 min). The module in one page, a checklist for scaling a service, and a quiz.
  • Say what scaling up and scaling out each cost, and work out how many instances a peak needs and how hot a group can run.
  • Say why state held in an instance’s memory works worse as instances are added and is lost when they are removed.
  • Choose where a session should live, and size a session store from the arrival rate and the time a session is kept.
  • Read a run of an autoscaling policy: what it rejected, how long it was above its target, and what it cost.
  • Say what shrinks the loss in a spike, and what each remedy costs.

All the numbers in the labs and calculators are illustrative. They are for comparing choices, not for forecasting any real product.

Built by GhaziAlibi.

© ShardCraft. All rights reserved.