redpanda-data / redpanda-data/connect

Feature Request: Add `Retry-After` header support to http_client

Open
#1,352 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement inputs outputs processors ux
Dominant language
Go
Stars
8.8k
Forks
969
Avg merge
1d 13h
Merged PRs (30d)
64

Description

Looks like Retry-After header is not yet honored by http_client. It's a common mechanism to let the client know when to try again once the client hits a service rate limit.

P.S. Looks like input_http_server generates this header as well:
https://github.com/benthosdev/benthos/blob/80327853267a033fffed629217af5fa166bc84af/internal/impl/io/input_http_server.go#L369

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 at the http_client implementation and compare its retry behavior with the Retry-After generation in internal/impl/io/input_http_server.go, especially around line 369. Determine how the header should control the next retry and verify that rate-limited responses are retried according to it; the issue does not name a test file.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.