PubSub introduction
PubSub enables decoupled communication between publishers and subscribers by communicating via middleware. Publishers publish their data in the form of DataSets to the middleware and subscribers fetch the DataSets they are interested in. As a result, a publisher does not need to know whether and how many subscribers are using the data it sends.
A typical use case for PubSub is publishing data that is of interest to a large number of recipients. Since no one to one connection setup is necessary between publisher and subscriber, the load on the publisher remains independent of the number of interested subscribers.
Middleware - broker / brokerless
In the context of software architecture, broker-based and brokerless refer to different approaches for handling communication between components. A broker-based system uses a central intermediary (the broker) to facilitate message exchange, while a brokerless system allows components to communicate directly with each other.