To run the examples, please start RabbitMQ server with docker compose up -d
in the package root.
Run in two terminals:
$ node examples/rpc/producer
$ node examples/rpc/consumer
Run in multiple terminals:
$ node examples/events/consumer A
$ node examples/events/consumer B
$ node examples/events/producer
A
and B
are consumer groups.
Try to run multiple instances with the same consumer group.
Run in two terminals:
$ node examples/streams/producer
$ node examples/streams/consumer