temporalio / temporalio/samples-go

Sample request: Rate limiting or semaphore implemented as a workflow

Open
#314 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.