Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [rabbitmq]
- host = HOST
- username = USERNAME
- password = PASSWORD
- vhost=/VHOST
- port=PORT
- queue=stock
- compression=Off
- [exchange]
- name=exports
- type=direct
- durable=On
- [queuesettings]
- routingkey=stock
- messagettl=10000
- deadLetterExchange=exports.dl
- deadLetterroutingkey=stock
- priority=10
- 2018/04/23 11:35:54 Connecting RabbitMQ...
- 2018/04/23 11:35:54 Connected.
- 2018/04/23 11:35:54 Opening channel...
- 2018/04/23 11:35:54 Done.
- 2018/04/23 11:35:54 Setting QoS...
- 2018/04/23 11:35:54 Succeeded setting QoS.
- 2018/04/23 11:35:54 Declaring queue "stock"...
- 2018/04/23 11:35:54 Registering consumer...
- 2018/04/23 11:35:54 failed to register a consumer: Exception (504) Reason: "channel/connection is not open"
- old_sound_rabbit_mq:
- producers:
- exports:
- connection: default
- exchange_options:
- name: 'exports'
- type: direct
- exports_dl:
- connection: default
- exchange_options:
- name: 'exports.dl'
- type: direct
- consumers:
- stock_dead_letter:
- connection: default
- exchange_options:
- name: exports.dl
- type: direct
- queue_options:
- name: stock.dl
- routing_keys:
- - stock
- arguments:
- x-dead-letter-exchange: ['S', 'exports']
- x-dead-letter-routing-key: ['S', 'stock']
- x-message-ttl: ['I', 60000]
- callback: amqp.consumers.exports.stock
- multiple_consumers:
- exports:
- connection: default
- exchange_options:
- name: 'exports'
- type: direct
- queues:
- stock:
- name: stock
- callback: amqp.consumers.exports.stock
- routing_keys:
- - stock
- arguments:
- x-dead-letter-exchange: ['S', 'exports.dl']
- x-dead-letter-routing-key: ['S', 'stock']
Add Comment
Please, Sign In to add comment