Many times, a single system may not be enough to handle the load of the applications. In this case, scaling is needed to balance load across multiple systems. We can scale applications using embedded ActiveMQ instances in a Network of Brokers (NoB) configuration.
By following the same initial setup in the previous recipe, we need to have two instances of Karaf running. We can prove this concept on a single machine or multiple machines. For this recipe, we will again be showing you how to set up two instances on the same machine, which requires different ports to be used for the different Karaf instances.
Ensure that the defaults for the two instances are in place.