|
||
---|---|---|
.. | ||
.gitignore | ||
offset_tracking_receive.js | ||
offset_tracking_send.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
receive.js | ||
send.js |
Node.js code for RabbitMQ stream tutorials
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.
Requirements
Apart from Node.js, these examples use the rabbitmq-stream-js-client
client library.
Code
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
.