Self-Test

Question 1

A homepage load fans out to roughly 700 backend services. One of them — recommendations — starts failing 80% of its requests. Walk through what a member actually experiences, contrast it with the same failure if Hystrix didn't exist, and then explain what Latency Monkey is specifically for given this scenario.

Show answer

With Hystrix (see Hystrix) in place: the recommendations circuit trips once its error rate crosses the threshold with sufficient volume in the rolling window. From then on, calls fail fast immediately — no thread waits, no timeout is incurred — and the caller gets a fallback (a cached or default recommendation row). The member sees a slightly stale or generic row; the rest of the homepage loads normally and promptly.

Without Hystrix, and especially without per-dependency bulkheading, every thread that calls the failing service blocks for up to its full timeout. If those calls share a pool with unrelated healthy dependencies, the pool exhausts and unrelated parts of the homepage — nothing to do with recommendations — start failing too. One bad dependency becomes a partial or full outage.

Latency Monkey (see Chaos engineering) exists to manufacture the "slow, not dead" version of this deliberately, in production, before a real incident does. A dependency returning errors fast is a different and often easier failure mode than one that's merely slow — and slow dependencies are exactly the ones that expose a missing or misconfigured bulkhead, because the breaker hasn't tripped yet and threads are piling up the whole time.

Question 2

Per-title encoding optimizes on a title's actual measured complexity. Open Connect optimizes on a region's actual measured demand. Explain precisely what these have in common structurally — and why chaos engineering is not a third example of the same pattern.

Show answer

Both the Open Connect and Per-title encoding parts replace a uniform, one-size default (a fixed bitrate ladder; a mirrored or uniform content placement) with a decision driven by measuring a real, bounded signal specific to the case at hand — this title's convex-hull-optimal encode points, this region's predicted demand. In both, more precise measurement produces a strictly better, more stable answer a team can converge on and keep.

Chaos engineering doesn't fit because there's no analogous "true optimal answer" to converge toward. The failure surface of a 700-service mesh changes every time any one of those services is deployed, scaled, or modified, so experiments never reach a final state where every failure mode has been found — the way a per-title ladder genuinely can reach an optimal encode. The Open Connect and Per-title encoding parts are optimization problems with a knowable right answer; the Chaos engineering part is a continuous-discovery practice against a moving target. The Regional failover part’s evacuation drills are in the second category too, which is why they're rehearsed rather than solved.

Question 3

Why does Chaos Monkey run during business hours instead of overnight, when production traffic — and therefore risk — is lower?

Show answer

Because the point isn't to cause a failure — it's to learn from watching how the system responds, and that requires the engineers responsible for the affected service to be present and paying attention when it happens. Running overnight would still cause the failure, but nobody would be watching in real time to see whether the system degraded as designed, catch a surprising interaction, or intervene when something didn't recover.

Business-hours execution trades a marginally lower-traffic, lower-risk window for the far more valuable property of having a human in the loop to extract the learning the practice exists to produce. It also has a cultural function: failure during the working day, observed by its owners, is normal and fixable — failure at 3am, discovered by a pager, is a crisis. The scheduling choice is as much about how the organization relates to failure as about the system.

Question 4

EVCache replicates writes across every AZ rather than sharding once across the whole cluster. Connect that choice to Chaos Gorilla, and explain what would go wrong during an AZ-loss event if EVCache used simple single-copy sharding instead.

Show answer

With cross-AZ replication, every AZ holds its own warm copy, so when an entire AZ disappears — exactly the event Chaos Gorilla simulates — surviving AZs keep reading from their own already-warm local cache. Hit rate in the survivors is largely unaffected by the loss.

With single-copy sharding, some fraction of keys would have lived only on nodes in the now-dead AZ. Every read for those keys in the surviving AZs suddenly misses and falls through to Cassandra — at the same moment the system has already lost a chunk of its compute capacity. An already-serious event is compounded with a secondary, entirely avoidable load spike on the durable datastore, and that spike can push Cassandra into the latency range where the Hystrix part’s circuit breakers start tripping across unrelated services, turning a capacity event into a mesh-wide degradation.

Chaos Gorilla is specifically valuable here because this chain (AZ loss → cache locality loss → DB load spike → breakers tripping elsewhere) is invisible when testing each layer in isolation. It only appears when you actually remove an AZ and watch.

Question 5

Why is artwork personalization fundamentally different from a conventional single-winner A/B test — and what does that difference imply about how it's engineered?

Show answer

A conventional A/B test assumes one variant is genuinely, globally better and the experiment's job is to find out which; once found, everyone gets the winner. Artwork personalization assumes the opposite: there is no image that's best for every member, because engagement with an image is a function of that member's own history and preferences (an actor they follow, a genre they favor), not a property of the image or title alone.

So the system can't converge to a fixed answer and stop experimenting. It must continuously predict, per member, per title, which candidate image that specific person is likeliest to engage with — a ranking / contextual-bandit problem rather than a one-time test with a declared winner. That also forces a genuine exploration budget: without deliberately showing occasionally-uncertain images, the model locks in early winners and never discovers what works for segments it under-sampled at the start. And engineering-wise it moves image selection onto the per-request critical path, which is only affordable because the EVCache part serves the decision from an in-AZ cache and only safe because the Hystrix part makes a default image the bounded worst case.

Question 6

Connect the 2008 database-corruption incident to why Netflix chose the strangler fig over a clean-slate rewrite — and say what specifically would have been risky about the rewrite given what the Hystrix and Chaos engineering parts later had to build.

Show answer

The 2008 incident exposed that a single relational datastore with shared fate was an unacceptable single point of failure at Netflix's growing scale: the fix had to be architectural, not operational.

A clean-slate rewrite would have meant building the entire new microservices architecture untested against real production traffic, then cutting over in one high-stakes event — exactly the moment you'd most want the resilience tooling (the Hystrix part’s breakers, the Chaos engineering part’s chaos practice) already proven, because a freshly-decomposed system's failure modes are precisely what those tools exist to catch, and neither existed yet at the start of the migration.

The strangler fig let each newly-decomposed piece absorb real production traffic in isolation, at small blast radius, while the resilience tooling was itself being built and matured alongside it. By the time the highest-fan-in pieces (the API front door) were finally strangled, the tools needed to safely operate a fully-decomposed system had been battle-tested on the earlier, smaller pieces. A big-bang rewrite would have forced the architecture change and the unproven resilience tooling into one simultaneous, irreversible moment.

Question 7

A member is mid-episode when the AWS region serving them degrades badly enough to be evacuated. Trace what they experience, second by second, and explain which architectural property is responsible for each part of the answer.

Show answer

Almost certainly: nothing, until they try to do something new. The episode keeps playing, because everything needed to continue is already on the client — a manifest, a DRM licence, and a ranked list of OCA addresses (see One press of Play) — and the bytes come from an appliance inside their ISP (see Open Connect), which is not in the failing region and never was. That's the control-plane / data-plane split doing its job.

The moment they hit "next episode," browse, or resume on another device, they're back on the control plane. During the evacuation window (see Regional failover) they may see elevated errors or slowness: traffic is being steered to other regions, those regions are scaling up, and their caches are cold for this member's keys, so requests fall through to Cassandra (see EVCache) at exactly the moment load is highest. Circuit breakers (see Hystrix) keep that cold-cache latency from cascading — the personalization and artwork calls fail fast to defaults, so the page renders generic rather than not at all — while entitlement and DRM, which have no fallback, are the calls that actually have to succeed for the next episode to start.

Then it settles: caches warm, capacity catches up, personalization returns. The whole sequence is the guide in miniature — physics kept the video flowing, active-active kept the control plane alive, bulkheads kept the degradation partial, and the two correctness boundaries were the only places where "degrade" wasn't an option.

Question 8

Your company runs a video product at 1/1000th of Netflix's scale. Which of Open Connect, per-title encoding, Hystrix-style bulkheads, and chaos engineering would you actually adopt — and what's the reasoning that decides each one?

Show answer

Open Connect: no. Its economics depend on traffic large enough that an ISP saves more by racking your hardware than it costs to power, and on a working set predictable enough to pre-position. At 1/1000th scale no ISP takes the call; you rent a commercial CDN, which is exactly the right answer.

Per-title encoding: yes, but tiered. The trade is one-time encode compute against per-view delivery cost, so it pays off in proportion to views per title. Apply full convex-hull optimization to your top content and a sane fixed ladder to the long tail — the reasoning transfers even though the blanket application doesn't.

Bulkheads and breakers: yes, and earlier than you think. The fan-out math (pn) doesn't care about your scale; it cares about your dependency count. Ten services with no isolation is already enough to produce a cascading outage. Use resilience4j or your mesh, not Hystrix (see What aged).

Chaos engineering: only after the prerequisites. It requires containment, fast rollback, a real customer-facing steady-state metric, and an org that treats a falsified hypothesis as information. Without those it's an outage with extra steps. Start with a game day on a staging-like path to build the muscle, then move to production with a tiny blast radius and an automatic abort — earn it in that order.