30 Days of Testability Day 12: Circuit Breakers Exercise

(Heather) #1

Welcome to our Circuit Breakers Exercise, for day 12 of 30 days of Testability. Decomposability is really important to testability, enabling you to test individual components and isolate problems quickly for remediation.

Goal

Identify how decomposability and testability are linked and how they can be applied in your situation.

Objectives

  1. Identify where and how to apply circuit breakers.

Exercise

Choose an area of an application of your choice to decompose. Identify where you might add circuit breakers to this system. Share your reasoning on the Club.

Examples

They both have excellent examples of how to decompose your system and apply circuit breakers.

1 Like
(Louise) #2

I decided to look at how the circuit breaker model could be applied to a new feature that was recently added to one of our applications.

Previously, if the user needed to export some items in a list they would need to export the entire list. Sometimes there can be several hundred items in that list, so we added a new feature that would allow the user to filter out certain list items.

If the new export feature were to fail, the user would not be able to export anything at all. Therefore, by applying the circuit breaker model we can allow the entire list to be exported if the new version fails.

Here is a diagram showing how the circuit breaker model could be applied:

image

I’ve written more about this in my blog: https://louisegibbstest.wordpress.com/12-decomposability-is-an-important-part-of-testability-complete-our-circuit-breakers-testing-exercise-over-on-the-club/

(Heather) #3

@mkltesthead blogged about this exercise

From Twitter