Skip to content
Discussion options

You must be logged in to vote

以下是完整配置,仅供参考

stream:
  # 数据通道
  channel:
    # 接受通道
    sourceQueue:
      # 通道类型,目前支持:memory
      type: memory
      # 队列容量
      capacity: 20000
    # 发送通道
    sinkQueue:
      type: memory
      # 队列容量
      capacity: 20000
  # 消息源配置
  source:
    test:
      # 消息源类型,目前支持:local、mqtt、kafka、rabbitmq、redis、pulsar
      type: mqtt
      # 关联通道
      channel: sourceQueue
      # 指定实例名称
      instance: mqtt-client-1
      config:
        topic: test/stream-1
        # 为空默认为UUID生成
        clientId: test1
    # 接受本地通道的数据,然后发送到MQTT Server
    test2:
      type: local
      channel: sinkQueue
  # 消息目标配置
  sink:
    # 接受处理
    test:
      # 消息目标类型,目前支持:local、mqtt、kafka、rabbitmq、redis、pulsar
      

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by meggls2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants