[Cs3] Push/Pull
Mikhail Nesterenko
mikhail at cs.kent.edu
Tue May 3 23:19:17 EDT 2022
> Thanks for your clarification on that.
>
> One more thing, so the example on your webpage for mediator, is that the
> pull method? Also if so, how would the push method work?
The pictures in the slides are from the patterns textbook, Page
276. The communication between colleagues is discussed on page 278.
They say that Mediator may be implemented both with Pull or Push
method: a colleague sends a message and the mediator propagates it, or
a colleague sends its address to the mediator, and the mediator
propagates this address to the other colleagues for them to pull more
information from the sender.
BTW, our air-traffic-control example implements a push method and,
come to think of it, does not implement colleague-to-colleague
communication at all. Next semester lab assignment possibly.
Thanks,
--
Mikhail
More information about the cs3
mailing list