Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a ThrottledWorker #1

Open
4 tasks done
themue opened this issue Mar 17, 2024 · 2 comments
Open
4 tasks done

Add a ThrottledWorker #1

themue opened this issue Mar 17, 2024 · 2 comments
Assignees
Labels
kind/enhancement New feature or request

Comments

@themue
Copy link
Member

themue commented Mar 17, 2024

  • Add a ThrottledWorker
  • It is created with a Contex, a Limit, and a Burstas arguments
  • Limit is a number of requests per second
  • Burst is the number of requests at a time
@themue themue added the kind/enhancement New feature or request label Mar 17, 2024
@themue themue self-assigned this Mar 30, 2024
@themue
Copy link
Member Author

themue commented Mar 30, 2024

Ensure a graceful context shutdown. It has to append a shutdown actionTask and block future input with a shutdown error.

@themue
Copy link
Member Author

themue commented Mar 30, 2024

Worker uses a flexible queue as buffer providing a function for input actionTask and a function returning a channel for an iteration pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant