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.6 (1 of 3): Why resilient systems matter

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.

45 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

The app is down on payday

It is payday. You open your bank app. It does not load. You wait ten minutes. You try again. Still nothing.

How do you feel about that bank now? A system that keeps working, or comes back quickly, is resilient. By the end of this lesson: I can explain why a resilient system matters to a company and its customers.

Key words

WordWhat it meansExample
ResilienceThe power to keep working, or recover fast, when something fails.A bank app that comes back in a minute
DowntimeThe time a system is not working.3 hours on payday
VulnerabilityA weak point that an attacker could use.An old, unpatched program
ReputationWhat people think of a company, good or bad.A bank people trust
BrandThe name, logo and image of a company.The bank's name and colours
Customer confidenceHow much customers trust a company with their service and data.People keep their savings there
EncryptionScrambling data so only the right people can read it.HTTPS
HTTPSWeb pages sent with encryption, shown by a padlock.A shop checkout page
VPNVirtual private network: a private, encrypted path across a public network.Working from home
NetworkComputers joined to share data.The internet
MonitoringWatching a system all the time to spot problems early.An alert when a server stops
Data leakPrivate data reaching people who must not see it.Customer names and cards shown on the internet

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

Match the benefit to an example

Have a go

Loading…

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

Benefits and their impact

BenefitImpact on the organisationImpact on the client
Increased securityFewer attacks work. Lower risk of fines and repair costs.Their data is safer.
Increased reputationThe brand is protected. Customers stay and new ones come.They trust the service.
Reduced downtimeFewer lost sales and fewer angry customers. Staff can keep working.The service is there when they need it.

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

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

Protect data in storage and in transfer

A resilient environment protects data in two places. Data in storage sits on disks and backups. Encryption, backups and rules about who may open it protect it.

Data in transfer moves across a network. Encryption, such as HTTPS or a VPN, protects it.

A resilient environment also has fewer vulnerabilities: weak points are found and closed early.

A failure in public hurts the brand

A company's brand is its name and image. If a failure is public, it hurts the brand. People remember the bank that lost their money, or the shop that showed their data to strangers.

A resilient system protects the brand. Customers keep their confidence, so they stay and tell others.

Which benefit is it?

Have a go

Which benefit is it?

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

Downtime costs money

Downtime is the time a system does not work. During it, staff cannot work, customers cannot buy and orders are lost.

A resilient system cuts downtime in two ways. It breaks less often. When it does break, it recovers fast.

Extra: Ask the monitor: is the web server up?

Command
curl -s -w "\n" 'http://prometheus:9090/api/v1/query?query=nginx_up'

A command for the lesson’s lab terminal. It is shown here and not run.

Extra: Stop the web server on purpose

Command
docker stop app

A command for the lesson’s lab terminal. It is shown here and not run.

Extra: Wait 8 seconds, then ask again

Command
curl -s -w "\n" 'http://prometheus:9090/api/v1/query?query=nginx_up'

A command for the lesson’s lab terminal. It is shown here and not run.

Extra: Put it right

Command
docker start app

A command for the lesson’s lab terminal. It is shown here and not run.

Extra: What you just saw

Important

The monitor showed the number 1 when the web server worked, and 0 when it stopped. That is downtime, measured. A team that watches this number can fix a fault in minutes, not hours.

Worked example: what downtime costs

StepSumAnswer
A shop earns 50 pounds a minute.
It is down for 1 hour.60 minutes
Lost money60 times 50 (60 x 50)3000 pounds
If a resilient system is back in 5 minutes5 times 50 (5 x 50)250 pounds

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

Try it: the cost of downtime

Code: python
pounds_per_minute = 50

for minutes_down in [5, 30, 60, 180]:
    lost = minutes_down * pounds_per_minute
    print(minutes_down, "minutes down loses", lost, "pounds")

# Change pounds_per_minute to 200 and run it again.

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

Your turn: cost and targets

Write two functions. downtime_cost(minutes, pounds_per_minute) gives back the money lost while a system is down. meets_target(downtime_minutes, allowed_minutes) gives back True if the downtime is within the target. Equal to the target is fine. Press Run Tests to check.

Code: python
def downtime_cost(minutes, pounds_per_minute):
    # How much money is lost while the system is down?
    return 0


def meets_target(downtime_minutes, allowed_minutes):
    # The target says how many minutes of downtime are allowed in a month.
    # Give back True if the downtime is within the target (equal is fine), otherwise False.
    return False

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.