安装

docker 单节点

  1. # 开启 jetstream
  2. docker run -d --name nats -p 4222:4222 nats -js

注意点

  1. topic只能定义在一个stream中
  2. 不同消费者同一队列名, 实际不是在同一队列中