Skip to content

add "stale open" mode #1

Description

@costela

A wrapped function that constantly runs into timeouts may have a sensible effect on p99 latencies if it gets called synchronously in half-open state.

To avoid these short latency spikes, hoglet could intruduce a "stale open" (or "async half-open") mode, where half-open retries happen out-of-band. The caller keeps getting a ErrBreakerOpen until the wrapped function returns successfully from a call in half-open state.

⚠️ This mode should only be used for wrapped functions that do not have side-effects, since they may otherwise change state in unexpected ways.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions