Mediator
Centralizes communication between a set of objects through one mediator, so they interact only with it instead of directly with each other.
Why we need this / what value this brings
Replaces a mesh of many-to-many object references with a hub-and-spoke structure, reducing coupling between the participants.
When to use this
A group of objects interacts in complex ways and that interaction logic should live in one place rather than scattered across each participant.
How to use or implement this
Have each participant hold a reference only to the mediator, and route all cross-participant communication through it instead of participant-to-participant.
Research questions
- The Chat module (buyer/seller/support-adjacent messaging) is a natural place to check for this: does a chat "room"/session object already mediate between participants, or do participants reference each other directly?
Empty folder — drop notes, links, and findings here as you research.