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.
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.
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
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
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
"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
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
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
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
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
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.
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
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.
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.
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.
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.
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.
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.
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.
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.
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