Not that sweet!
---
Nameless exchange
In previous parts of the tutorial we knew nothing about exchanges, but still were able to send messages to queues. That was possible because we were using a default "" empty string (nameless) exchange. Remember how publishing worked:
channel.basic_publish(exchange='',
routing_key='hello',
body=message)
The empty string exchange is special: messages are routed to the queue with the name specified by routing_key, if it exists.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment