Design Patterns · Middle · Question 9 of 75

What's the risk of a global event bus as an implementation of Mediator?

Explanation

Decoupling via event names is convenient, but as the app grows, connections hide in strings, cycles appear, and "ghost" subscribers emerge. That's why React apps usually prefer explicit flows: props, Context, a store with selectors.

Further reading

Problem with a question

Design Patterns · Middle · question 9

Test yourself

Take the Design Patterns · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz