Skip to content

Single concurrency per "entity"? #937

Answered by manast
mikecann asked this question in Q&A
Discussion options

You must be logged in to vote

BullMQ makes the best effort to keep the order of the jobs, and this applies also to the group functionality in the pro version. However, there are some edge cases where this is not possible, this is mostly due to some limitations in Lua script (lacking support for blocking calls), but in practice, if you have distributed jobs running on several workers it is practically impossible, it kinds of defies the laws of physics.

So without having all the requirements of your use case, I would say that you probably need something like Postgres and take advantage of its ACID guarantees in order to implement your "turn per player" requirements. Maybe BullMQ can be used for offloading heavy jobs in …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mikecann
Comment options

Answer selected by mikecann
Comment options

You must be logged in to vote
1 reply
@mikecann
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants