Use errors count over sliding windows to block calls to an external service or method, or whatever.
Avner Cohen
MIT