This is a super simple Node.js client to test out an Apache Pulsar install. It creates a producer that will send 10 test messages, and a consumer that will listen for incoming messages.
Replace <your-pulsar-server-url>
in both consumer.js
and producer.js
.
npm i
npm run start-consumer
- In a seperate terminal:
npm run start-producer
- Watch for the messages to come in!