In order for messages to be routed to a queue, the queue must be bound to the exchange, although the nature of this binding depends on the type of exchange. Exchange-to-exchange bindings can be used to construct complex routing topologies.

amqp_bind_queue(conn, queue, exchange, routing_key = "", ...)

amqp_unbind_queue(conn, queue, exchange, routing_key = "", ...)

amqp_bind_exchange(conn, dest, exchange, routing_key = "", ...)

amqp_unbind_exchange(conn, dest, exchange, routing_key = "", ...)

Arguments

conn

An object returned by amqp_connect.

queue

The name of the queue.

exchange

The exchange to source messages from.

routing_key

The routing key to use (if applicable).

...

Binding arguments, if any.

dest

The exchange to send messages to.