Here you can find JavaScript (Node) code examples from RabbitMQ tutorials related to the Stream plugin.
To successfully use the examples you will need a running RabbitMQ server with the stream plugin enabled.
See First Application With RabbitMQ Streams, Stream plugin documentation and how to preconfigure plugins.
Apart from Node.js, these examples use the rabbitmq-stream-js-client
client library.
Code examples are executed via npm
:
npm run send
npm run receive
Tutorial two: Offset Tracking:
npm run offset-tracking-publish
npm run offset-tracking-receive
To learn more, see coders51/rabbitmq-stream-js-client
.