AI engineering glossary · Web APIs HTTP

What is circuit breaker?

Circuit breaker: A resilience pattern in which a client stops calling a service after repeated failures, failing fast for a cooling-off period, then lets a few trial calls through to see if it has recovered. It protects both sides from wasted effort and cascading failures.

Level: advancedTopic: Web APIs HTTP

Circuit breaker: an example

After 5 consecutive errors, calls to a payment API are blocked for 30 seconds.

Related terms

More Web APIs HTTP terms

Where you learn it

Circuit breaker is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.