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
| Word | What it means | Example |
|---|---|---|
| Cloud computing | Using computers, storage and programs that belong to someone else, over the internet. | Saving photos online |
| Public cloud | A cloud owned by a provider and shared by many customers. | A large company that rents out servers to many customers |
| Private cloud | A cloud used by one organisation only. | A bank's own data centre |
| Data centre | A building full of servers, storage and network equipment. | A large warehouse of servers |
| Elasticity | Adding or removing resources quickly as demand changes. | More servers for a sale |
| Portability | Moving work and data easily to another place or provider. | Open your files on any device |
| Pay as you go | Paying only for what you use, while you use it. | A bill for 10 hours of a server |
| Network | Computers joined to share data. | The internet |
| Virtualisation | Making 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 questionsPublic and private cloud compared
| Public cloud | Private cloud | |
|---|---|---|
| Who owns it | A provider, shared by many customers | One organisation, or one rented for them alone |
| Cost | Low to start. You pay as you go. | High to start. You pay for the hardware and the staff. |
| Control | The provider decides many things | The organisation decides everything |
| Speed to grow | Very fast | Slower: you must buy more hardware |
| Good for | Start-ups, tests, busy and quiet periods | Strict 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 questionsFour 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?
| Step | What to do | Result |
|---|---|---|
| 1 | There are 250 users. One server handles 100. | |
| 2 | Full servers: 250 divided by 100, keep the whole number | 2 servers |
| 3 | Users left over: 250 - 200 | 50 users |
| 4 | Some users are left, so add one more server | 3 servers |
The cells students fill in are left blank in this preview.
Try it: servers up and down
# 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.
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