- Foundation
- About 13 min
- 5 practice questions
Words around the cloud: web hosting, API, containers, serverless and edge
Recognise and explain web hosting, API, container, serverless, CDN and edge computing in plain language, and match each to a simple situation.
If something looks wrong, please tell us.
Once you know cloud basics, you will meet more words in articles and in exams. Each has a simple idea behind it. This lesson explains them with everyday pictures. The memory sizes used in the example are invented to show the idea.
The words and their ideas
| Term | Plain meaning | Picture |
|---|---|---|
| Web hosting | Renting space on a server so that a website is reachable on the internet | Renting a shop in a market |
| API | A set of rules that lets one program ask another program for data or action | A waiter who carries your order to the kitchen |
| Container | A package holding an application and what it needs, sharing the host's operating system | A lunch box with the meal packed inside |
| Serverless | The provider runs your small piece of code only when something triggers it; you do not manage servers | A taxi, not a car you own |
| CDN | A network of servers that keep copies of content near users | Many local branches of a shop |
| Edge computing | Processing data near where it is produced instead of far away | A first-aid post on the road instead of a distant hospital |
Serverless does not mean there are no servers. It means you do not have to set up or look after them; the provider does that and charges only while your code runs.
A virtual machine (VM) carries a whole operating system of its own, while a container shares the host's operating system, so containers start faster and need less memory. Both are ways of sharing one physical computer among many tasks.
Worked example 1: match the situation
(a) A school pays a company to keep its website on a server it does not own: web hosting. (b) A weather app asks a service for today's forecast using a defined request format: it calls an API. (c) A film is shown to viewers in many cities from servers close to each of them, so it starts quickly: a CDN. (d) A camera in a factory checks products on the spot rather than sending all pictures far away: edge computing.
Worked example 2: VMs against containers
Suppose a server has 30 GB of memory available for applications (illustrative). Each VM needs 4 GB for its own operating system plus 1 GB for the application, so 5 GB. Number of VMs = 30 / 5 = 6. Each container needs about 1.5 GB for the application and its packaging, since the operating system is shared. Number of containers = 30 / 1.5 = 20. The same machine holds more containers than VMs, which is why containers are called lighter.
Worked example 3: why serverless can be cheaper
A small function is run 2,000 times a month and each run is billed at an invented Rs 0.01. Cost = 2,000 x 0.01 = Rs 20. A server rented around the clock for the same job would be billed for every hour, even when idle. Serverless pays off when work is occasional; for steady heavy work, other options may cost less.
Hosting rents space, an API is a doorway between programs, a container is a light package, serverless runs code on demand, a CDN and the edge bring things closer to users.
Key takeaways
- API = rules for programs to talk to each other.
- Container shares the host operating system; a VM carries its own.
- Serverless means the provider manages the servers, not that none exist.
- CDN and edge computing both reduce distance, for content and for processing.
Check your understanding
-
1. What is an API?
- A cable that joins a computer to a printer
- A kind of virus that copies itself to other files
- Rules for one program to request data from another
- A storage drive that keeps copies of old photos
Show answer
Answer: C. An API (Application Programming Interface) is a defined way for programs to talk to each other, like a waiter carrying orders to a kitchen.
-
2. A server has 24 GB for applications. Each VM needs 6 GB. How many VMs fit?
- 4
- 6
- 18
- 144
Show answer
Answer: A. 24 / 6 = 4 VMs. The value 144 comes from multiplying instead of dividing.
-
3. Which technology keeps copies of content on servers near users so it loads quickly?
- A DNS, which stores only the names of websites
- A CDN, or content delivery network
- A BIOS chip, which starts a computer
- A modem, which turns signals into sound
Show answer
Answer: B. A CDN keeps copies close to viewers. DNS maps names to addresses, BIOS starts a computer and a modem converts signals.
-
4. What does 'serverless' mean?
- No computer is used anywhere to run the code
- The code can run only on the user's own phone
- The service works with no internet and no electricity
- The provider manages the servers and runs your code on demand
Show answer
Answer: D. Servers still exist, but you do not set them up or look after them. The provider runs your code on demand.
-
5. Why can a server hold more containers than virtual machines?
- Containers share the host operating system
- Containers are always put on much larger disks
- Containers do not run any application inside them
- Virtual machines may not use any memory at all
Show answer
Answer: A. A VM includes a full operating system, using extra memory. A container shares the host's, so it is lighter and more fit in the same memory.
Sign in to keep track of the lessons you finish.