mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #196] [FEATURE REQUEST] Shared and Dedicated Queue Workers with strategy #2087
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#2087
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sujit-baniya on GitHub (Sep 17, 2020).
Original GitHub issue: https://github.com/hibiken/asynq/issues/196
Originally assigned to: @hibiken on GitHub.
Shared Queue Workers:
ROUND-ROBIN strategy - Whichever queue is free, send to that queue irrespective of queue priorities,
WEIGHTED strategy - Send to queue with appropriate queue based on messages. High volume messages would go with high priority queue,
CUSTOM strategy - Admin defines the strategy for user. If userA is set to high priority, his messages will go to high priority queue
Probably making use of
mux.Handle("queue", handler)Dedicate Queue Workers:
Probably making use of
mux.HandleFunc("queue:12", handler)@sujit-baniya commented on GitHub (Sep 17, 2020):
https://github.com/hibiken/asynq/issues/194
@hibiken commented on GitHub (Sep 20, 2020):
You could use
Inspector.CurrentStatsto inspect the size of the queue. You can implement strategies listed above in your application code. I don't think we want to implement this at this package level (at least for now).