Your circuit breaker stops at the service layer. Slow SQL needs one too. (opens in new tab)
Your circuit breaker stops at the service layer. Slow SQL needs one too. A single slow query can take down an entire service in seconds. This post starts with a production cascade failure and walks through how I built a Spring Boot Starter that does circuit breaking at the MyBatis interceptor layer, keyed by SQL type + SQL fingerprint โ plus a few design trade-offs worth talking about. The SDK is open source, on Maven Central, and takes one dependency + a bit of YAML to wire in. ๐ Source: Git...
Read the original article