Using Several Broker Clients
You might find that a number of programming situations are made easier by creating several Broker clients within a single application.
If your application has several phases of operation, you can use a separate client to represent each phase.
Because different
Broker clients can belong to distinct client groups, they can subscribe to and publish different event types. You can use this feature to divide the work your application needs to perform.
A multi-threaded application can spawn separate threads for each
Broker client, which can result in a cleaner programming model.