Vue Storefront is now Alokai! Learn More
Presets

Presets

Presets provide ready-made circuit breaker configurations so you don't have to tune individual settings. Pick the one that best matches your backend's reliability profile.

Production presets

These presets are safe to use in all environments, including production.

BALANCED (default)

The default for every integration. Works well when your backend is reasonably reliable and you don't need special tuning.

When to use: Most integrations. Start here and only switch if you observe specific issues.

SettingValue
Error threshold50%
Timeout20s
Reset timeout15s
Min. calls before tripping20

AGGRESSIVE

Trips quickly at the first sign of trouble. Protects the storefront from slow backends by failing fast and shedding load early.

When to use: Fast, reliable backends where any slowdown is abnormal and should be caught immediately. Good for high-traffic storefronts where queued requests could cascade.

SettingValue
Error threshold30%
Timeout5s
Reset timeout10s
Min. calls before tripping10

FAST_FAILURE

Ultra-fast detection with a very short reset window. The breaker trips quickly and recovers quickly, minimizing downtime for brief backend hiccups.

When to use: Latency-sensitive flows like checkout or payment where a slow response is worse than an immediate error. Also useful when the backend recovers quickly from transient failures.

SettingValue
Error threshold40%
Timeout3s
Reset timeout5s
Min. calls before tripping5

HARD_FAIL

The strictest production preset. Trips after very few failures with near-zero tolerance. Use with caution — it can trip on minor blips.

When to use: Zero-tolerance scenarios where even a small number of errors indicates a serious backend issue. Suitable for critical paths where you'd rather block all traffic than risk serving degraded responses.

SettingValue
Error threshold10%
Timeout2s
Reset timeout3s
Min. calls before tripping3

TOLERANT

Very slow to trip with generous timeouts. Lets the backend breathe even when it's struggling.

When to use: Slow or unreliable backends (e.g., legacy ERP, SAP instances) where high latency is normal, not exceptional. Also useful for low-risk integrations (e.g., reviews, recommendations) where occasional failures are acceptable.

SettingValue
Error threshold70%
Timeout60s
Reset timeout60s
Min. calls before tripping30

Non-production presets

These presets have extremely relaxed thresholds and should never be used in production. EXTREME_DEBUG is automatically blocked in production environments and falls back to BALANCED.

RELAXED_DEBUG

Very tolerant settings for debugging flaky APIs in staging or development. Keeps the breaker open long enough to observe backend behavior without it constantly tripping.

When to use: Debugging intermittent failures in non-production environments. Useful when you need traffic to keep flowing so you can inspect logs and responses.

SettingValue
Error threshold80%
Timeout30s
Reset timeout30s
Min. calls before tripping30

EXTREME_DEBUG

Maximum tolerance — the breaker almost never trips. Intended for local development and test environments only.

When to use: Testing only. When you need the circuit breaker infrastructure active but don't want it interfering with your test scenarios.

Blocked in production. If EXTREME_DEBUG is set in a production environment (NODE_ENV=production), the middleware logs a security warning and automatically falls back to BALANCED.

SettingValue
Error threshold95%
Timeout120s
Reset timeout60s
Min. calls before tripping50