3.6.6 RabbitMQ教程五 – Topics
What This Tutorial Focuses On In the previous tutorial we improved our logging system. Instead of using a fanout exchange only capable of dummy broadcasting, we used a direct one, and gained a possibility of selectively receiving the logs. 在之前的教程中我们改进了我们的日志系统。我们没有使用只能无脑广播的fanout交换,而是使用了direct交换,并获得了有选择的接收日志的可能性。 Although using the direct exchange improved our system, it still has limitations - it can't do routing based on multiple criteria. 虽然使用direct交换改进了我们的系统,但它仍然有局限性 - 它不能基于多个标准进行路由。 In our logging system we might want to subscribe to not only logs based on severity, but also based on the