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

feat: implement unthrottled concurrency using task queue #106

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

lavafroth
Copy link
Contributor

Changes

  • create worker goroutines specified through CLI
  • goroutines steal incoming tasks from a channel and execute them
  • workers consume tasks instead of plain domain name strings
  • a task consists of a domain and a provider

This approach spawns n green threads instead of n * len(providers). Should prevent resource usage from blowing up and help scaling.

- create worker goroutines specified through cli
- goroutines steal incoming tasks from a channel and execute them
- workers consume tasks instead of plain domain name strings
- a task consists of a domain and a provider

This approach spawns n green threads instead of n * len(providers).
Should prevent resource usage from blowing up and help scaling.
@lc lc merged commit b7d239b into lc:master Oct 23, 2023
@lc
Copy link
Owner

lc commented Oct 23, 2023

Looks great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants