redpanda-data / redpanda-data/benthos

Support circuit breaking inputs

Open
#77 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
571
Forks
120
Avg merge
2d 1h
Merged PRs (30d)
18

Description

When processing from a FIFO input stream a fail in a connected REST Service should possibly trigger a circuit breaking of the input stream.
Might be necessary for Inputs to declare internally, whether they support Circuit Breaking natively though.
Config could be:

processors:
- circuit_breaker:
    half_open_max_requests: 2
    interval: "1s"
    open_timeout: 60s
    trip: |
      root = this.requests >= 3 && (this.total_failures / this.requests) >= 0.6
    processors:
    - http:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how FIFO input streams handle failures from the connected REST service and how the existing http processor is configured. Review the proposed circuit_breaker configuration, including half-open requests, intervals, timeouts, and trip conditions; done would mean the supported input behavior and configuration are defined and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.