Hello, I am trying to understand what a data bus / message bus in distributed systems is ... do I understand correctly that:

1) with a pub / sub model, there is a server that receives data from the producer (producer) and sends it to all interested consumers (consumer) ... is this server the data bus?

2) the data bus sends ALL messages from each of the manufacturers to ALL consumers ... and only on the basis of, for example, some id, only a certain consumer processes the message?

  • Rather, the first, because it is more effective. But the server is not the bus itself, but its controller or manager. - Eugene Krivenja

1 answer 1

It is the first. Someone publishes something, the processor sends all to subscribers. Thus, you can remove any module and nothing breaks.