Mediator pattern implementation for pub-sub management