Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 806 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 806 Bytes

Rust Pulsar Producer Sample

Build Status

This is Pulsar producer sample code, an analogy of Python producer code.

How To Run Sample Code

Run Pulsar Broker

$ docker run -it \
  -p 6650:6650 \
  -p 8080:8080 \
  -v $PWD/data:/pulsar/data \
  apachepulsar/pulsar:2.2.0 \
  bin/pulsar standalone

Produce

$ git clone https://github.com/quiye/pulsar-rust-websocket-client.git
$ cd pulsar-rust-websocket-client
$ cargo run

then,

Got message: {"result":"ok","messageId":"CHcQAg==","context":"5"}

Consume

TODO