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
| Word | What it means | Example |
|---|---|---|
| Resilience | The power to keep working, or recover fast, when something fails. | A bank app that comes back in a minute |
| Downtime | The time a system is not working. | 3 hours on payday |
| Vulnerability | A weak point that an attacker could use. | An old, unpatched program |
| Reputation | What people think of a company, good or bad. | A bank people trust |
| Brand | The name, logo and image of a company. | The bank's name and colours |
| Customer confidence | How much customers trust a company with their service and data. | People keep their savings there |
| Encryption | Scrambling data so only the right people can read it. | HTTPS |
| HTTPS | Web pages sent with encryption, shown by a padlock. | A shop checkout page |
| VPN | Virtual private network: a private, encrypted path across a public network. | Working from home |
| Network | Computers joined to share data. | The internet |
| Monitoring | Watching a system all the time to spot problems early. | An alert when a server stops |
| Data leak | Private 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
| Benefit | Impact on the organisation | Impact on the client |
|---|---|---|
| Increased security | Fewer attacks work. Lower risk of fines and repair costs. | Their data is safer. |
| Increased reputation | The brand is protected. Customers stay and new ones come. | They trust the service. |
| Reduced downtime | Fewer 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 questionsProtect 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 questionsDowntime 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?
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
docker stop appA command for the lesson’s lab terminal. It is shown here and not run.
Extra: Wait 8 seconds, then ask again
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
docker start appA 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
| Step | Sum | Answer |
|---|---|---|
| A shop earns 50 pounds a minute. | ||
| It is down for 1 hour. | 60 minutes | |
| Lost money | 60 times 50 (60 x 50) | 3000 pounds |
| If a resilient system is back in 5 minutes | 5 times 50 (5 x 50) | 250 pounds |
The cells students fill in are left blank in this preview.
Try it: the cost of downtime
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.
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