Demo: a cascading failure, then the fix
On This Lesson 3 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
break checkout with a slow payments, then contain it. Prepares MID-033-LAB1.
Draft outline details
Step by step
- Put Toxiproxy between
ordersandpayments; run a load test on checkout and onGET /products. - Add 5 s latency to the proxy: checkout hangs and product listing also slows as the pool fills.
- Add a 500 ms read timeout on the payments client; checkout fails fast but still hammers
payments. - Add a circuit breaker and a bulkhead for
payments; repeat: failures are fast, product listing stays healthy. - Planned mistake: configure the breaker to count
400responses as failures; it opens on validation errors. Fix: record only timeouts and 5xx. - Remove the latency and watch the breaker go half-open, then closed.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.