-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Node.js streams: new offset tracking tutorials #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi @l4mby, thanks for your contributions. I made a few tests, here a few comments:
For example this is what the java stream example is printing during the second Receive:
|
Hi @DanielePalaia,
Thank you |
HI @l4mby I'm having some issues with this scenario now: Send, Send and then Receive. The receive client is returning an exception:
|
Hi @DanielePalaia, i couldn't replicate the error you were having, on my machine. I pushed a fix, can you check if you get the same error? |
Hi @l4mby, no unforunately I still have this issue even after your last commit. If it can help I'm running RabbitMQ 3.13.3 inside a container and this is the full exception I'm having:
|
Hello @DanielePalaia i cannot replicate the problem, i am using the docker file as so:
and i am enabling the rabbitmq_stream plugin, i am also using nodejs 22.5.1 and my output is
|
@DanielePalaia Looks good to me. I can run the example without problems |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DanielePalaia is right.
When you publish more than one time:
npm run offset-tracking-publish;
The consumer gets:
Connecting...
Start consuming...
First message received
Marker found
Marker found
Marker found
The consumer is not closed correctly.
Also if you run the consumer before the publisher:
Error while receiving message! Error: Stream was not found on any node
Sorry for the quick approve. I tested only the happy path :)!
6fbcc4a
to
7195e60
Compare
Tutorial 2 for RabbitMQ streaming nodejs client