PatternsBreaker pattern
Circuit breaker
A client-side state that stops sending requests after repeated failures, then probes tentatively before closing again.
- Category
- Patterns
- Also known as
- Breaker pattern
- Related terms
- 5
- Directory entries
- 3
- Docs
- docs.typesafe.ai
- Added
- 2026-10-12
Definition
A circuit breaker opens after a run of failures so calls fail fast instead of piling up timeouts, then half-opens to test a single request before fully closing. It complements retries: a retry handles a transient blip, a breaker handles a sustained outage.
For a decision pipeline it is the mechanism behind the fail-open or fail-closed posture, because the open state is where the fallback path runs. Pair it with a bounded total time so the transition to the fallback is predictable.
Tagspatternsapi
Related terms
Definitions that connect to this one.
Retry policyThe SDK configuration for retrying failed requests: attempt count, retryable statuses, backoff, and retry-header handling.API & ModelsFail openWhen Jev is down or slow, the gate allows the action, including rules that would otherwise block it.EcosystemFail closedWhen the model errors, times out, or lacks evidence, the system escalates or blocks instead of allowing the action.EcosystemExponential backoffThe retry strategy the docs recommend for 429 and 529 responses: wait longer after each attempt instead of retrying immediately.API & ModelsRate limitThe throughput caps — 250,000 tokens per second and 1,200 requests per minute — that return 429 when exceeded.API & Models
From the Jev directory
RetryPolicy for the Python SDK: attempt count, exponential backoff with jitter, which HTTP statuses retry, and a total time budget.
Jev Repos & SDKsDocs#official#docs#sdk
Official
A Java gateway that asks Jev four questions about a deposit or withdrawal, then applies a direction-aware routing matrix in code.
Jev Tools & CLIs#community#java#security
Community
klauswg/jev-guardJava
Four Java checkers — sponsored video, hiring fit, edit fidelity, and rental listings — that keep thresholds and vetoes in unit-tested code.
Jev Tools & CLIs#community#java#verification
Community
klauswg/jev-suiteJava
From the Jev community
Posts from builders shipping with Jev right now.