rabbitmq-tutorials/javascript-nodejs-stream
Michele Agnello 514aa10587
fix: example beahviour (#467)
Co-authored-by: magne <magnello@coders51.com>
2024-08-26 12:14:41 +02:00
..
.gitignore Hello World for nodejs stream client (#403) 2024-05-09 07:23:05 +02:00
offset_tracking_receive.js fix: example beahviour (#467) 2024-08-26 12:14:41 +02:00
offset_tracking_send.js add nodejs-stream offset-tracking tutorials 2024-08-22 11:17:34 +02:00
package-lock.json fix: example beahviour (#467) 2024-08-26 12:14:41 +02:00
package.json fix: example beahviour (#467) 2024-08-26 12:14:41 +02:00
README.md fix: fix offset logging and readme 2024-08-22 11:17:34 +02:00
receive.js Hello World for nodejs stream client (#403) 2024-05-09 07:23:05 +02:00
send.js Hello World for nodejs stream client (#403) 2024-05-09 07:23:05 +02:00

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:

Tutorial one: "Hello World!":

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.