← Latest papers
💻 computer science

A Genetic Algorithm-Based Approach for Cascading Failure Analysis in Serverless Architectures

This paper proposes a Genetic Algorithm-based framework that integrates chaos and resilience engineering to systematically analyze cascading failures in serverless architectures, identifying worst-case fault scenarios and quantifying resilience boundaries to evaluate the effectiveness of cold start mitigation strategies.

Original authors: Vansh Arora, Sumeet Mangat, Neenu Garg

Published 2026-07-31
📖 4 min read☕ Coffee break read

Original authors: Vansh Arora, Sumeet Mangat, Neenu Garg

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine the internet as a massive, bustling city where millions of tiny, invisible workers (called "functions") spring into action the moment you click a button. These workers don't live in big, permanent offices; instead, they pop into existence only when needed, do their job, and then vanish. This is the world of Serverless Computing. It's incredibly efficient because you only pay for the time these workers are actually busy. However, there's a catch: if a worker hasn't been called in a while, they have to wake up from a deep sleep, put on their tools, and get ready before they can help. This "waking up" time is called a Cold Start, and it can cause a slow, frustrating delay.

Now, imagine if one slow worker causes the next worker to wait, which makes the third worker panic, and suddenly the whole line of workers grinds to a halt. This is a Cascading Failure, where a small problem snowballs into a system-wide meltdown. To stop this, engineers usually try to guess when the workers will be busy and keep some of them awake (a strategy called "pre-warming"). But the real world is messy and unpredictable; what works on a quiet Tuesday might fail spectacularly during a flash sale. This is where Chaos Engineering comes in: the practice of intentionally breaking things on purpose to see how the system reacts. But breaking things randomly is like throwing darts in the dark; you might hit a weak spot, or you might miss the real danger entirely.

This is the puzzle tackled by Vansh Arora, Sumeet Mangat, and Neenu Garg in their research. They asked: How can we find the absolute worst-case scenario for these serverless systems without just guessing? Their answer is a clever mix of chaos engineering and Genetic Algorithms—a type of computer program inspired by how nature evolves. Instead of randomly throwing darts, their system acts like a digital naturalist. It creates thousands of different "what-if" scenarios (like "what if the first worker is 5 seconds late?" or "what if the second worker fails 10% of the time?"), tests them, and then "breeds" the most dangerous combinations together. Over time, the system evolves to identify the specific ranges of delays and failure rates that cause the biggest, most catastrophic crashes, rather than settling on just one single recipe.

The researchers built a digital playground on Amazon Web Services (AWS) to test this. They set up a chain of functions where one triggers the next, mimicking a real-world app. They then let their "evolutionary" program loose. Instead of just hoping to find a problem, the Genetic Algorithm actively hunted for the worst possible conditions. It discovered that by tweaking specific delays and failure rates, it could trigger a chain reaction where the system's response time skyrocketed from a quick 120 milliseconds to a sluggish 920 milliseconds, and the error rate jumped from a tiny 0.5% to a chaotic 12.8%.

The study suggests that this automated, evolutionary approach is far better at finding hidden weaknesses than traditional random testing. In their experiments, the Genetic Algorithm found failure scenarios that caused a queue backlog (a line of waiting requests) to grow to 65 seconds, compared to just 18 seconds with random testing. The team also introduced a way to measure a "Resilience Boundary"—essentially, the exact point where the system stops being able to handle the load and starts to collapse. They found that while some strategies like "Provisioned Concurrency" (keeping workers permanently awake) helped, the most effective method in their tests was "Snapshot-Based Execution," which allowed the system to handle up to 7,000 requests per second before failing, compared to only 3,000 for a system with no special protections.

Ultimately, the paper suggests that we can't just hope our serverless apps are strong; we need to actively evolve our tests to find the breaking points. By using a computer to "breed" the worst possible failures, developers can see exactly where their system is fragile and fix it before real users ever notice. It's a bit like a video game boss that learns your moves and gets harder every time you beat it, ensuring that when the real traffic hits, your system is ready for the toughest fight possible.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →