Lesson 1 · Unit 02
Servers and containers
Instances, autoscaling groups, managed containers and what you patch
What you practise
- Instances, autoscaling groups behind a load balancer, managed containers, what you patch and what you do not
Try a question from this lesson
Pick one
One virtual machine serves a site. On launch day traffic triples and it sits at 100% CPU. Which change also keeps the site up if a machine dies?
Correct answer
Run several identical machines behind a load balancer
Why
A bigger machine handles the load but is still one machine: when it dies, the site dies. Several small ones share the load and cover for each other. That is why cloud servers come in groups.
The ideas
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Instance, image, group
An instance is one rented virtual machine. It boots from an image: a disk snapshot with the operating system and your app already on it.
An autoscaling group keeps a set of identical instances running from one template. It replaces unhealthy ones, adds instances when load rises and removes them when it falls.
A load balancer in front spreads requests and checks health.
AWS: EC2 instances, Auto Scaling groups, Elastic Load Balancing.
load balancer
/ | \
server server server
'---- autoscaling group ---'Concept
Containers, managed
A container image packs your app with everything it needs to run.
A managed container platform runs that image for you. You state the CPU and memory per copy and how many copies to keep. It places them, restarts them and connects them to a load balancer.
Two flavours: the containers land on virtual machines that you still own, or there are no machines of yours at all.
AWS: ECS, on your EC2 instances or on Fargate, where none are yours. Cloudflare: Containers, running alongside a Worker.
10 more exercises in the app
- 1× order the lines
- 3× multiple choice
- 2× type the answer
- 1× match the pairs
- 2× true or false
- 1× fill the blanks
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.