如何将我的RabbitMq交换设置为异步定义?
在示例中我发现了这一点。
channels:
user/signup:
publish:
bindings:
amqp:
expiration: 100000
userId: guest
cc: ['user.logs']
priority: 10
deliveryMode: 2
mandatory: false
bcc: ['external.audit']
replyTo: user.signedup
timestamp: true
ack: false
bindingVersion: 0.2.0斜杠前的通道名称部分是否表示交换?
发布于 2021-06-12 03:02:16
有一个完整的exchange属性可用于AMQP的channel binding。您当前正在使用的绑定是operation binding。
这意味着您可以这样定义它
channels:
user/signedup:
publish:
bindings:
amqp:
expiration: 100000
userId: guest
cc: ['user.logs']
priority: 10
deliveryMode: 2
mandatory: false
bcc: ['external.audit']
replyTo: user.signedup
timestamp: true
ack: false
bindingVersion: 0.2.0
bindings:
amqp:
is: routingKey
queue:
name: my-queue-name
durable: true
exclusive: true
autoDelete: false
vhost: /
exchange:
name: myExchange
type: topic
durable: true
autoDelete: false
vhost: /
bindingVersion: 0.2.0https://stackoverflow.com/questions/67941467
复制相似问题