Skip to content
Exercise · RabbitMQ: exchanges and queues · lesson 4 of 7

Exercise: topic patterns

A RabbitMQ topic exchange puts a message into a queue when the routing key fits the binding key. Here the binding key is a pattern: order.*.eu lets order.created.eu through, and order.# lets through any order event. This exercise needs no broker: you repeat the rule RabbitMQ uses to compare a key with a pattern.