An example of how to publish and subscribe to a Pulsar message queue.
python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
To see the help docs, python -m pulsar_demo
.
The following examples expect you to have a Pulsar message broker running on 127.0.0.1:6650.
python -m pulsar_demo pulsar://127.0.0.1:6650 pulsar-demo subscribe --prefix sub1
python -m pulsar_demo pulsar://127.0.0.1:6650 pulsar-demo publish --prefix pub1