Adding jobs from Rust? #3124
Unanswered
MichielvdVelde
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Easiest would be to use this: https://github.com/taskforcesh/bullmq-proxy |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I'm currently working on a distributed system which uses BullMQ in Node.js. However, one crucial component will be written in Rust. This component generates events which should be processed to update the game state. My current approach is to use output streams from the Rust component, and a 'bridge' which reads from the stream and converts events into jobs. These jobs are then picked up for processing.
I'd very much like to be able to simplify this flow by adding the events to BullMQ as jobs directly from the Rust component. I have taken a preliminary look at the TS code, and it seems it would be possible to partially port to Rust (only and exclusively the adding of standard and possibly prioritized jobs).
So, the question is, can anybody provide some insight in what this would entail? It seems relatively straightforward and would cut out the middle-man.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions