Unicast is the standard message queuing approach. A message is sent from one service process or software agent to another. The queuing framework will ensure that this happens reliably and will provide certain guarantees about delivery.
This approach is dependable, but doesn't scale well as a system grows because each node will need to know about all its recipients. It would be better to loosely couple system components together so that they don't need to have knowledge about any of the others.
This is often achieved by using a broker, which has three main advantages:
- By using a broker, you can decouple processes from each other so that they aren't required to know about the system architecture or be alive at the same time. They only ...