Can I retrieve information about the queue to control the enqueue speed? #748
-
I have a client that places tasks in a queue, and there are servers responsible for processing these tasks. I aim to maintain an optimal queue size in order to ensure stability. For instance, if I can retrieve the current queue size, I can instruct the client to wait until the size falls below certain limits. Are there any established practices for achieving this? |
Beta Was this translation helpful? Give feedback.
Answered by
kamikazechaser
Sep 24, 2023
Replies: 1 comment
-
Yeah, you can use https://pkg.go.dev/github.com/hibiken/asynq#Inspector |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
piratf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, you can use https://pkg.go.dev/github.com/hibiken/asynq#Inspector