Is it possible to define a binding between an exchange (direct or topic) and a queue so that the queue receives only those messages that are sent to the routing keys that have no explicit binding with any other queue?
E.g. there is an exchange X and queues A and B. The queue A is bound with ‘black’ and ‘white’ binding keys. The queue B is defined as a leftover queue (if it is possible at all, which is the point of my question). So when we send a message to the exchange X with either ‘black’ or ‘white’ routing key, then it is delivered to the queue A. If we send a message to the exchange X with any other routing key then it is delivered to the queue B only.
Sure, just use RabbitMQ’s Alternate Exchange feature. That’s exactly what it has been designed to do.