Skip to content

Files

Latest commit

 

History

History

javascript-nodejs-stream

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.