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
| Word | What it means | Example |
|---|---|---|
| Server | a computer that does work for other computers | |
| Cloud | computers you rent over the internet | |
| Provider | a company that rents out cloud computers | |
| Data centre | a building full of servers | |
| Region | a group of data centres in one area | London |
| Pay as you go | paying 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
| Question | Owning | Renting |
|---|---|---|
| When do you pay? | Up front | Each hour you use it |
| How fast can you start? | Days or weeks | Minutes |
| Who fixes a broken disk? | You | The provider |
| What if you need ten more? | Buy ten more | Ask for ten more |
| What if you stop needing it? | It sits idle | Hand it back |
The cells students fill in are left blank in this preview.
Try it: owning against renting
# 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
| Plan | Hours used | Price per hour | Monthly cost |
|---|---|---|---|
| Left on all month | 720 | 10p | £72.00 |
| Office hours only (8 hours, 20 days) | 160 | 10p | £16.00 |
| Switched off after one week | 168 | 10p | £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
| Who | Users are in | A sensible region | Why |
|---|---|---|---|
| A bakery chain in Leeds | The UK | London | Close to users, data stays in the UK |
| A delivery app in Paris | France | Paris | Close to users |
| A shop selling to Japan | Japan | Tokyo | Pages load faster there |
| A test server for a UK team | Only the team | The cheapest nearby region | Price matters most |
The cells students fill in are left blank in this preview.