mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #300] Question: is it possible for multiple "servers" to "forward" the same messages #123
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#123
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 @seanyu4296 on GitHub (Jul 25, 2021).
Original GitHub issue: https://github.com/hibiken/asynq/issues/300
Originally assigned to: @hibiken on GitHub.
Hi, @hibiken
First off, awesome lib! I'm trying to study and use your library. I'm pretty new to go and redis too.
So, Can I ask is it possible for multiple "servers" to "forward" the same messages given the code below?
wouldn't 2 servers querying from the same queues end up querying the same items if they are started almost at the same time?
Wondering also if you have some docs explaining the rough architecture of your lib, it will be tremendously helpful
Thanks,
@hibiken commented on GitHub (Jul 25, 2021):
Hi @seanyu4296 thank you for the question!
Redis is single-threaded from the POV of commands execution.
Please take a look at this Atomicity of scripts in redis doc.
quotes from redis documentation:
Second part about slow scripts explains why we are currently dealing with 100 tasks at a time (to avoid running a slow script which blocks other commands from executing).
I'll document the design once the library is stable (i.e. version 1.0 release).
@seanyu4296 commented on GitHub (Jul 26, 2021):
gotcha thanks for the quick, succinct, and clear explanation! @hibiken
Do you have a timeline or roadmap to version 1.0 release? 😄
@hibiken commented on GitHub (Jul 26, 2021):
I have this milestone https://github.com/hibiken/asynq/milestone/2
The roadmap is not set in stone, it may change in the future.
@seanyu4296 commented on GitHub (Jul 26, 2021):
Awesome stuff thanks! @hibiken