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

Free lesson

Renting computers instead of owning them

After this lesson: I can explain renting computing instead of owning it.

45 min lessonNo commands

A server in a cupboard

A small online shop buys a server for £3,000. It sits in a cupboard in the office.

It is busy for two weeks before Christmas. For the rest of the year it is mostly idle. The shop paid for all of it, and someone has to fix it when it breaks.

Many companies now rent computers by the hour instead. This lesson shows how that works.

By the end of this lesson

Note

I can explain renting computing instead of owning it.

Key words

WordWhat it meansExample
Servera computer that does work for other computers
Cloudcomputers you rent over the internet
Providera company that rents out cloud computers
Data centrea building full of servers
Regiona group of data centres in one areaLondon
Pay as you gopaying only for what you use

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

Renting means someone else owns the machines

When you own a server, you pay for it before you use it. You wait for it to arrive. You fix it when a disk fails.

When you rent from a cloud provider, the provider owns the machines in its data centres. You ask for a server and it is ready in a minute or two. When you no longer need it, you hand it back and the bill stops.

Owning and renting side by side

QuestionOwningRenting
When do you pay?Up frontEach hour you use it
How fast can you start?Days or weeksMinutes
Who fixes a broken disk?YouThe provider
What if you need ten more?Buy ten moreAsk for ten more
What if you stop needing it?It sits idleHand it back

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

Try it: owning against renting

Code: python
# Example prices, not a real price list.
buy_price = 3000        # pounds, paid once
rent_per_month = 70     # pounds, for a similar rented server

months = 12
rent_total = rent_per_month * months

print("Owning for", months, "months costs", buy_price, "pounds")
print("Renting for", months, "months costs", rent_total, "pounds")

if rent_total < buy_price:
    print("Renting is cheaper over this time.")
else:
    print("Owning is cheaper over this time.")

# Change months to 48, then press Run. Which is cheaper now?

Pay as you go: the bill follows use

Cloud servers are usually priced by the hour. Some services are priced by the second, by the gigabyte or by the request.

This is called pay as you go. A server that runs only in office hours costs less than one left on all night. A test server you forget to switch off keeps costing money, every hour.

Worked example: one test server for a month

PlanHours usedPrice per hourMonthly cost
Left on all month72010p£72.00
Office hours only (8 hours, 20 days)16010p£16.00
Switched off after one week16810p£16.80

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

A common mistake

Warning

Many people think the cloud is always cheaper. It is cheaper when use goes up and down, or when you need something quickly. A server that is busy all day, every day, for years can cost less to own. Compare the total over the time you will use it.

A region is where your servers live

A provider has data centres in many parts of the world. A group of them in one area is a region, such as London or Frankfurt.

You choose the region when you start a server. Pick one close to your users, so pages load faster. Pick one where the law lets you keep the data. A UK payroll firm often keeps staff data in a UK region.

Worked example: choosing a region

WhoUsers are inA sensible regionWhy
A bakery chain in LeedsThe UKLondonClose to users, data stays in the UK
A delivery app in ParisFranceParisClose to users
A shop selling to JapanJapanTokyoPages load faster there
A test server for a UK teamOnly the teamThe cheapest nearby regionPrice matters most

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

Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.