You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
603 B
YAML

# 本地测试请修改hosts文件
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: rabbitmq-pubsub
spec:
type: pubsub.rabbitmq
version: v1
metadata:
# rabbitmq地址
- name: host
value: "amqp://rabbitmq:5672"
# 消息持久化
- name: durable
value: "true"
# 是否自动删除
- name: deletedWhenUnused
value: "false"
# 持久模型
- name: deliveryMode
value: "2"
# 预提消息数
- name: prefetchCount
value: "10"
# 重试等待时间
- name: reconnectWait
value: "3"
# 并行处理
- name: concurrencyMode
value: parallel