redpanda-data / redpanda-data/connect
Feature Request: Add `Retry-After` header support to http_client
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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