I'm looking for a way to make hierarchical routing in RabbitMQ. I tried to find the answer in documentation, but suddenly failed.
Generally, RabbitMQ allows you to connect to direct exchanges by some routing key but it is not clear for me how I can route between several exchanges.
For instance, let's say we have 'root' exchange and 'host1' exchange with routing key 'host1'. And I have a queues binded to 'host1' exchange by routing key their own pids. Can I publish message to 'root' exchange with routing_key, like 'host1.31261'? Obviously, it doesn't work exactly that way but is there a way to make a complex route with different direct exchanges?