Closed antick closed 3 years ago
Hi @antick, Sorry missed this. Will respond shortly.
Hi @antick,
After going through your issue, I understand you want to do the following...
If my understanding is correct, you need to use a database to store the output of the message in stage 2, and retrieve this from the database in stage 3. You cannot retrieve messages from a queue by id.
Also you should only need to call Broker.create once per application, rather than from express middleware.
This makes sense. Thanks a lot.
Hi,
This is a much better library than other available amqplb libraries out there.
Although, I am not able to figure out one thing with this.
I have the following code in my node express route:
I'm running a worker on yarn start with this code:
Everything works fine so far. I'm able to get the processed message in this worker and it's printed in the terminal.
Now I want to create an endpoint in node express to fetch the above processed output based on the taskId/messageId that I received while I published it. I'm not sure how can I do this. I have tried this but it's not working:
Please can someone help me with this?