temporalio / temporalio/samples-go
Sample request: Rate limiting or semaphore implemented as a workflow
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 749
- Forks
- 248
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 8
Description
Describe the solution you'd like
Want a simple rate limit library that is backed by a workflow. Can be a simple acquire/release workflow based on bidirectional signals, with the acquire/release abstracted as a rate limiter interface. Then, we need a default implementation of said interface that is just token bucket based w/ refill.
Contributor guide
No contributing guide indexed for this repository
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 by reviewing the repository's existing workflow samples and the Temporal Go SDK workflow entry points to determine how a bidirectional acquire/release interaction should fit. Done means a rate-limiter interface, a workflow-backed acquire/release implementation, and a default token-bucket implementation with refill behavior are clearly defined and demonstrated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100