BlogArchitecture

Nubank runs its disaster recovery tests in 40 minutes

Nubank automated its outage drills with AWS FIS, K6 and AWS DevOps Agent. Which part a small SaaS can copy this week, and which part it can't.

Ink and watercolor illustration: a tower of wooden blocks with a crane hook pulling one block out of the middle; the tower stays standing and the gap glows mint green.

Nubank has cut its disaster recovery tests from about 4.3 hours to about 40 minutes: a controlled, bounded failure, synthetic traffic, and an agent that gathers the evidence and writes the report. A small SaaS doesn’t need that scale to borrow the idea. Start with one experiment that has a stop condition, and let the agent write the report, not decide whether the test passed.

What Nubank did

On 28 October, AWS published Nubank’s case on its Cloud Operations blog, co-written with two people from the bank’s team. The setting: more than 140 million customers in Brazil, Mexico and Colombia, thousands of microservices on Amazon EKS, and more than 300 business flows classed as critical.

Each drill used to be a meeting. In the words of Vitor Puente, engineering director at Nubank: “Disaster recovery testing used to mean coordinating 70+ engineers across 7+ teams”. More than four hours with product, platform and risk in the same room, and about two weeks of investigation afterwards.

Now the full test is a five-part pipeline:

  • Argo Workflows orchestrates the test end to end.
  • K6 generates synthetic customer traffic against the critical flows.
  • AWS FIS (Fault Injection Service, AWS’s service for controlled failures) injects the fault and ends it on a time limit or when a safety metric trips.
  • An internal service takes Grafana screenshots of every panel.
  • AWS DevOps Agent runs a structured prompt per scenario, pulls metrics, logs and alerts for the test window through Nubank’s internal MCP servers (MCP is the protocol an agent uses to connect to tools and data), and writes the report.

They run three scenarios and plan to reach six: an Availability Zone down, a cluster down (a replay of a real 2024 incident), and deleted or modified data in DynamoDB.

The numbers, according to the post: the cycle dropped 85%, from about 4.3 hours to about 40 minutes, at “a few dollars” per run. Cost per cycle fell 91% in 2026, and engineering effort fell 43% across nine tests. Coverage went from about 40 flows to more than 160. A single run terminated more than 900 EKS instances under synthetic traffic.

Read it carefully. These are Nubank’s own measurements, published by AWS as a customer story. The 2027 figures are projections. And the post doesn’t say how often the agent’s analysis was right, or how it was checked against human review.

How to start

You don’t have 300 flows or 70 engineers, and you don’t need them. The part you can copy is the boring one: break something small on a set date, measure, and keep a written report.

  1. Pick one flow and one question. For example: “if an Availability Zone in eu-west-1 goes down, can my customers still book?”. One flow, not all of them.
  2. Look at the Resilience Hub templates. The next generation of AWS Resilience Hub ships four predefined tests built on FIS: Availability Zone recovery, dependency validation, multi-Region isolation and multi-Region recovery. Since August they are available in several Regions, including Ireland, London, Frankfurt, Paris and Stockholm. To list them:
aws resiliencehubv2 list-test-templates --region eu-west-1
  1. Set the stop condition before the fault. In FIS, an experiment can stop itself when a CloudWatch alarm fires. That is what Nubank does with its safety metrics, and it is what turns a drill into something you dare to run in production.
  2. Generate traffic. A K6 script that walks the customer journey (log in, search, pay) while the fault lasts. Without traffic you can’t tell whether you recovered or nobody was using it.
  3. Hand the report to the agent, with a fixed template. AWS DevOps Agent connects to your metrics and logs and supports your own MCP servers. Give it the same structure every time: what broke, when, which metrics moved, how long recovery took, and what it couldn’t verify. It is billed per second of agent work; check the product FAQ before you schedule it weekly.

My take

What I would copy from Nubank is the discipline of a small, repeatable test, not the scale. Many small SaaS teams have never tested their recovery, because they picture it as a whole-company day. A FIS experiment scoped to one zone, with a stop alarm and 15 minutes of synthetic traffic, is something you can run on a Tuesday afternoon.

The agent is the part that worries me least and tempts most. Writing the report is exactly the job nobody wants, the one that leaves a drill as a hallway conversation. That’s where I would use it. But I wouldn’t let it say “recovery was correct” without a person reading the screenshots. The case itself doesn’t publish how accurate the agent is, and a polished report on a test that went wrong is worse than no report.

If you do one thing this month: pick the flow that costs you most when it’s down, trigger a zone failure with a stop condition, and write down how long it took to come back. That number is your starting point.

Sources

If you want to see how I run a SaaS on AWS with a small team and many agents, follow me on LinkedIn.

← All articles

Have a product to build or a tech stack to put in order?

Tell me what you are trying to achieve and where you are today. I reply personally, usually within a day.

Free · 30 minutes

Digital strategy session

30 minutes to map where to start digitalizing and transforming your business. You pay nothing, before or after.

When you book, you answer three short questions: what you need, what stage your project is at and when. That way the session starts with context.