Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

7.5 (1 of 2): Public and private cloud

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

40 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

Black Friday

An online shop is quiet on most days. On Black Friday it gets twenty times more visitors. If it owned all its computers, most of them would do nothing for the other 364 days.

So the shop uses the cloud. Cloud computing means using computers, storage and programs that belong to someone else, over the internet. When the sale ends, the shop gives the extra computers back.

Key words

WordWhat it meansExample
Cloud computingUsing computers, storage and programs that belong to someone else, over the internet.Saving photos online
Public cloudA cloud owned by a provider and shared by many customers.A large company that rents out servers to many customers
Private cloudA cloud used by one organisation only.A bank's own data centre
Data centreA building full of servers, storage and network equipment.A large warehouse of servers
ElasticityAdding or removing resources quickly as demand changes.More servers for a sale
PortabilityMoving work and data easily to another place or provider.Open your files on any device
Pay as you goPaying only for what you use, while you use it.A bill for 10 hours of a server
NetworkComputers joined to share data.The internet
VirtualisationMaking computers and their parts in software.Many virtual computers on one real computer

The cells students fill in are left blank in this preview.

Public or private cloud?

Have a go

Public or private cloud?

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Public and private cloud compared

Public cloudPrivate cloud
Who owns itA provider, shared by many customersOne organisation, or one rented for them alone
CostLow to start. You pay as you go.High to start. You pay for the hardware and the staff.
ControlThe provider decides many thingsThe organisation decides everything
Speed to growVery fastSlower: you must buy more hardware
Good forStart-ups, tests, busy and quiet periodsStrict rules, sensitive data, steady work

The cells students fill in are left blank in this preview.

Extra: Real public cloud providers

Three big public cloud providers are Amazon Web Services (AWS), Microsoft Azure and Google Cloud. Each one has data centres in many countries. Many customers share them.

In the exam, say "a public cloud provider". You do not need the names.

Quick check

Have a go

Quick check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Four benefits of the cloud

Portability: your files and programs are online, so you can reach them from any device. You can also move a system from one provider to another.

Elasticity: you add resources when demand goes up and remove them when it goes down.

Fewer storage limits: you can keep adding storage. You are not stopped by the size of one disk.

Cost effectiveness: you do not buy hardware you may not need. You pay for what you use.

Elasticity in a picture

flowchart LR
  quiet["Quiet day: 150 users"] --> s1["2 servers"]
  sale["Sale day: 2000 users"] --> s2["20 servers"]
  s2 --> after["Sale ends: back to 2 servers"]

Worked example: how many servers?

StepWhat to doResult
1There are 250 users. One server handles 100.
2Full servers: 250 divided by 100, keep the whole number2 servers
3Users left over: 250 - 20050 users
4Some users are left, so add one more server3 servers

The cells students fill in are left blank in this preview.

Try it: servers up and down

Code: python
# One server handles 100 users. Users change through the day.
users_by_hour = [50, 80, 300, 900, 1500, 700, 120]

hour = 0
for users in users_by_hour:
    servers = users // 100        # full servers
    if users % 100 > 0:           # some users are left over
        servers = servers + 1     # so one more server
    print("Hour", hour, ":", users, "users ->", servers, "servers")
    hour = hour + 1

# Change a number. See the servers change at once.

Make a free account to save your work and track your progress.

Which benefit is it?

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The cloud is not always cheaper

Warning

Many people think the cloud is free, or always cheaper. Its costs grow with use, so they stay low only if somebody watches them. You also need a good internet link, and you depend on the provider. You still protect your own data and accounts.

Your turn: servers and the bill

Write two functions. servers_needed(users) gives back how many servers you need. Each server handles 100 users. You always keep at least 1 server. 250 users need 3 servers. cloud_cost_pence(servers, hours, pence_per_hour) gives back the total cost in pence: every server costs the same each hour. Press Run Tests to check.

Code: python
def servers_needed(users):
    # Each server handles 100 users. Always keep at least 1 server running.
    # 250 users need 3 servers, because 2 servers handle only 200.
    return 0


def cloud_cost_pence(servers, hours, pence_per_hour):
    # Pay as you go: every server costs pence_per_hour for every hour it runs.
    # Give back the total cost in pence.
    return 0

Make a free account to save your work, or press Start lab to work through the whole lesson.

Key words crossword

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Final check

Have a go

Final check

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.