Defending Against Cascading Failures: SLOs, Overload Control and Chaos Experiments

Reproduce a site-wide outage caused by one slow payment provider in a fictional online grocer's Go services, then defend it: deadlines, retry budgets, bulkheads, priority load shedding, brownout and stale data; SLOs, burn-rate alerts and an error budget release gate; chaos experiments under k6 load with Toxiproxy and Chaos Toolkit; and incident response from the page to the blameless postmortem.

Site Reliability Engineer. Advanced.

What you will build and explain

  • Explain how a slow dependency, a shared pool and retries at several layers turn one failure into an outage, using Little's law and the metrics that reveal each mechanism.
  • Define SLIs and SLOs per user journey, compute error budgets and burn rates with Prometheus recording rules, test the rules, and gate releases with an error budget policy.
  • Implement and tune deadline propagation, idempotency keys, jittered retries inside a retry budget, bulkheads, short transactions, priority admission control, brownout and a bounded stale cache, and explain what each costs.
  • Run arrival-rate load tests that do not hide overload, find the capacity knee, and design chaos experiments with a hypothesis, a limited blast radius, rollbacks and an automatic abort, comparing a defended design with an undefended one.
  • Page on customer-visible symptoms with multiwindow burn-rate alerts, work an incident with prepared mitigations, and write a blameless postmortem with action items from the recorded timeline.

Before you begin

  • Using a terminal and Docker Compose (starting containers, reading logs), HTTP methods and status codes including 429 and 503, and sending requests with curl
  • Reading short functions in a C-like language, SQL SELECT and INSERT, YAML and JSON, and knowing what a counter and a latency percentile are; Go specifics, PromQL, SLOs, k6 and Chaos Toolkit are taught from the beginning
  • A Linux, macOS or Windows (WSL 2) computer with Docker and Docker Compose, 6 CPUs and 8 GB of memory for Docker, about 10 GB of free disk and a web browser

Who this is for

For backend, platform and DevOps engineers who use a terminal and Docker Compose, read HTTP and short functions in a C-like language, and want to design, test and operate the defences that keep one failure from becoming an outage: SLOs and error budgets, deadlines, retry budgets, bulkheads, load shedding, chaos experiments and incident response.

Curriculum

Learning topics (14)
  1. Check your starting skills and prepare your machine

    This project asks you to break a working online shop on purpose, watch the failure spread, and then build and prove the defences that stop it spreading. You will read Go code, change a live configuration file, read Prometheus queries, run load tests and chaos experiments, and work an incident from the first page to the postmortem. This page lists what you are expected to know already, explains the few ideas every later lesson relies on, and checks that your machine can run th

  2. See how one failure stays one failure

    Fernhill Grocer's storefront is a handful of small services behind a gateway. The Saturday outage showed what happens when such a system has no defences: a slow payment provider made checkouts slow, slow checkouts held the gateway's shared workers, and every other journey queued behind them, including browsing, which never touches the payment provider. An earlier incident had shown the other classic weakness: retries at two layers multiplying the load on a service that was al

  3. Understand how a slow payment provider took down browsing

    Browsing never calls Larkpay. Product pages come from the catalog service and its database; only a checkout talks to the payment provider. Yet when Larkpay slowed from 100 milliseconds to three seconds, product pages stopped loading too. This lesson explains how a failure in one dependency spreads to journeys that do not use it, why retries make it worse, and what you should look for in metrics when it starts. Every defence in the lessons that follow answers one of the mechan

  4. Measure what shoppers feel and decide when reliability comes first

    "The site was down" is how the Saturday outage was first described, but it hides what matters. Browsing and checkout failed in different ways, at different times, for different reasons. Before you can defend a system you need a precise, shared answer to three questions: is it working for its users right now, how much unreliability can they tolerate, and when does reliability work take priority over new features? Service level indicators, objectives and error budgets answer th

  5. Give each request one time budget and pass it to every call

    A shopper who clicks "Place order" waits a few seconds and then gives up, reloads or leaves. After that moment, every bit of work done for the request is wasted: the answer has nobody to go to. In the naive design that moment is invisible to the system. Each call has its own fixed ten-second timeout, so a checkout can keep a gateway worker, a database connection and a Larkpay call busy for twenty seconds or more after the shopper has gone. This lesson replaces independent tim

  6. Retry safely with idempotency keys, jitter and a retry budget

    Retrying a failed call is the most natural defence there is, and most of the time it works: a dropped connection, one slow instance or a brief 503 usually succeeds on the second attempt. It is also how Fernhill's inventory outage turned one shopper's order into nine requests to a service that was already down. This lesson keeps the benefit and removes the danger with five rules: retry only what is safe to repeat, at one layer, after a random wait, within a budget, and only wh

  7. Keep one dependency out of everyone else's capacity

    Deadlines stop work that nobody is waiting for, but within its four-second deadline a checkout may still wait three seconds for a slow Larkpay. At ten checkouts a second that is thirty checkouts waiting at once, and each holds something: a goroutine, memory, an outgoing connection and, in the naive design, a database connection. This lesson limits how much of a service any one dependency can occupy, and how much of the database any one service can occupy, so that a slow payme

  8. Admit by priority, shed, brown out and serve stale data

    Bulkheads protect a service from one slow dependency. They do not help when the whole shop receives more traffic than it can serve: a newsletter goes out, a competitor's site is down, everyone shops at six on Saturday. Then something must be turned away, and the only question is what. This lesson makes that a decision taken in advance: recommendations go first, browsing next, and checkout keeps capacity of its own; optional work is switched off before anything is refused; and

  9. Generate realistic load and find the knee of the curve

    Every limit in the previous three lessons is a number: 24 Larkpay slots, a gateway limit of 160, a reserve of 40. Those numbers are only as good as the measurement behind them, and the experiments in the next lesson are only meaningful under realistic traffic. This lesson covers the load generator itself: how to produce traffic that behaves like shoppers, how to find the point where the system stops keeping up, and the classic mistake that makes a slow system look fast.

  10. Prove the defences with hypotheses, faults and a watchdog

    Unit tests prove that each defence does what its code says. They do not prove that the defences together keep browsing alive when Larkpay slows down under real load, with real timeouts, pools and queues interacting. The only way to know is to slow Larkpay down and watch, on purpose, at a time you choose, with a way to stop. That is chaos engineering: experiments on a running system to build confidence that it withstands the failures it will meet anyway. This lesson explains h

  11. Page on burn rate and work an incident with prepared mitigations

    During the Saturday outage, customers noticed before the on-call engineer did, there was no runbook, and the first twenty minutes went on finding out what was wrong. The defences in this project make an outage less likely; this lesson is about the one that happens anyway. It covers when to wake someone up, how the page reaches them, what they should know within seconds of opening it, and how they mitigate before they fully understand the cause.

  12. Write a blameless postmortem from the recorded evidence

    The Saturday outage's first postmortem named a person: the engineer who had sized the gateway's worker pool years earlier. It changed nothing, because the pool's size was not the problem. Any fixed, shared pool would have filled once a dependency slowed down, and the next engineer would have made the same reasonable choice. This lesson is about writing the other kind of postmortem: one that explains how the system and the way the team works allowed the incident, and ends with

  13. Build the lab, reproduce the outage, defend and prove it

    This runbook holds every command of the project in the order the Step-by-Step Guide uses them. It starts from a computer with Docker and nothing else, builds and starts Fernhill's storefront with its monitoring and incident tooling, measures a normal evening, reproduces the Saturday outage, works the incident, and then proves each defence with an experiment in both modes. The cleanup removes everything afterwards.

  14. Remove the lab and confirm nothing remains

    Everything the lab created lives on your computer: containers, three networks, five volumes, three images built from the source, the third-party images it pulled, and three local files and folders (secrets/, .env and reports/). No cloud resources exist, so nothing costs money while it remains, but the volumes and images take a few gigabytes. This page removes them in an order that cannot leave something half-deleted.

Practical build steps (11)
  1. Prepare your machine and build the lab

    You check that Docker has enough CPUs, memory and free ports, generate the lab's nine secrets into a folder only you can read, and build the two images: one with every Go service and the sre tool, one with Chaos Toolkit and k6.

  2. Start the lab and take a first look

    One command starts the storefront, its database and fault-injection proxy, the incident service, Prometheus, Alertmanager and Grafana. You check that only five loopback ports are exposed, ask the sre tool for the shop's state, and place an order twice with the same idempotency key to see that it is charged once.

  3. Measure the evening peak

    You run five minutes of Fernhill's Saturday evening traffic in protected mode and read the result as an SRE would: each journey against its objective, the error budget left, and what the release gate says about shipping a feature. This is the healthy baseline every experiment is compared with. Optionally, a ramp test finds the point where your machine stops keeping up.

  4. Reproduce the Saturday outage

    You switch the shop to the design it had on the day of the outage and slow the payment provider by three seconds under peak load. Browsing fails although it never calls the payment provider, the burn-rate alert pages, and an incident opens with the person on call assigned and a first diagnosis attached.

  5. Work the incident

    The outage comes back as a game day: load you start, a fault you add. You work it as the person on call: acknowledge, read the diagnosis, apply the prepared mitigation with a reason, confirm that browsing recovers while the fault is still there, remove the fault, resolve, and draft the postmortem from the timeline.

  6. Prove the defences against a slow provider

    The same payment slowdown runs again with every defence on. Browsing holds its objective, checkout answers within its deadline with some orders refused quickly, and the payment provider is not flooded with retries. A report puts the naive and protected runs side by side.

  7. Contain a retry storm

    Inventory resets every connection for two minutes, in both modes. No order can succeed either way; what changes is the cost. The naive design sends about nine attempts per order to a service that is down, the protected one about 1.3, and fails the order in a fraction of a second.

  8. Keep browsing up when the database slows

    The catalog's database answers 400 milliseconds slower for two minutes, in both modes. Without defences every journey fails, checkout included; with them, the catalog serves recent copies marked stale and browsing stays within its objective.

  9. Absorb a traffic spike

    Three times the evening peak arrives on top of it, more recommendations than the catalog can compute. Without defences every journey degrades together; with them, recommendations are browned out to an empty list and browsing and checkout keep their objectives. You then return the shop to its default configuration.

  10. Run the tests

    You run the Go unit tests in an image with no network, the Prometheus rule tests that check the SLIs and alerts against sample data, and the Alertmanager configuration check: the same checks the GitHub Actions workflow runs on every push.

  11. Remove the lab

    You keep a copy of the reports if you want them, then remove every container, network and volume of the lab, the three locally built images and the generated secrets, and check that nothing with the lab's label remains.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

No cloud account, licence or spending is needed: the storefront, PostgreSQL, Toxiproxy, Prometheus, Alertmanager, Grafana, the incident service, k6 and Chaos Toolkit run as containers on your own computer, with synthetic data and generated credentials for a fictional company. The first build downloads about 1.5 GB of images and packages, and load tests use most of the machine while they run. GitHub Actions is optional; it is free on public repositories and uses your account's included minutes on private ones. This is a learning lab, not a hosted environment, a certification or a production-readiness guarantee.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Third-party components, such as Go modules (pgx, the Prometheus Go client, go-yaml), PostgreSQL, Toxiproxy, Prometheus, Alertmanager, Grafana, k6 and Chaos Toolkit, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy