Complex routing (Advanced)

In this task, we will decouple our application further by splitting up sHop's logging. We will use a topic exchange to implement a variation of the Publish Subscribe pattern, routing different types of messages to multiple queues.

Getting ready

Let's decouple the various levels of logging our sHop application uses. We have three loggers, each represents a function within our sHop organization. Each function is interested in different types of message/logs:

Logger

Levels

Binding

Description

Fulfillment

ERROR

Order.log.ERROR

Errors from orders

Developer

ERROR

*.log.ERROR

Errors from everywhere

Operations

ERROR,

WARN, INFO

*.log.*

Everything from Everywhere

How to do it...

Let's navigate to our source ...

Get Instant RabbitMQ Messaging Application Development How-to now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.