• 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

Six cloud words
TermPlain meaningPicture
Web hostingRenting space on a server so that a website is reachable on the internetRenting a shop in a market
APIA set of rules that lets one program ask another program for data or actionA waiter who carries your order to the kitchen
ContainerA package holding an application and what it needs, sharing the host's operating systemA lunch box with the meal packed inside
ServerlessThe provider runs your small piece of code only when something triggers it; you do not manage serversA taxi, not a car you own
CDNA network of servers that keep copies of content near usersMany local branches of a shop
Edge computingProcessing data near where it is produced instead of far awayA 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. 1. What is an API?

    1. A cable that joins a computer to a printer
    2. A kind of virus that copies itself to other files
    3. Rules for one program to request data from another
    4. 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. 2. A server has 24 GB for applications. Each VM needs 6 GB. How many VMs fit?

    1. 4
    2. 6
    3. 18
    4. 144
    Show answer

    Answer: A. 24 / 6 = 4 VMs. The value 144 comes from multiplying instead of dividing.

  3. 3. Which technology keeps copies of content on servers near users so it loads quickly?

    1. A DNS, which stores only the names of websites
    2. A CDN, or content delivery network
    3. A BIOS chip, which starts a computer
    4. 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. 4. What does 'serverless' mean?

    1. No computer is used anywhere to run the code
    2. The code can run only on the user's own phone
    3. The service works with no internet and no electricity
    4. 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. 5. Why can a server hold more containers than virtual machines?

    1. Containers share the host operating system
    2. Containers are always put on much larger disks
    3. Containers do not run any application inside them
    4. 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.

Privacy · Terms · Refunds · Delivery