Bird
0
0

What is the primary benefit of using the Mediator pattern in system design?

easy🧠 Conceptual Q1 of 15
LLD - Behavioral Design Patterns — Part 2
What is the primary benefit of using the Mediator pattern in system design?
AIt reduces direct dependencies between components by centralizing communication.
BIt increases the number of direct connections between components.
CIt eliminates the need for interfaces between components.
DIt duplicates communication logic in every component.
Step-by-Step Solution
Solution:
  1. Step 1: Understand component communication

    The Mediator pattern centralizes communication to reduce direct links between components.
  2. Step 2: Analyze benefits of centralization

    This reduces complexity and dependencies, making the system easier to maintain.
  3. Final Answer:

    It reduces direct dependencies between components by centralizing communication. -> Option A
  4. Quick Check:

    Mediator benefit = Reduced dependencies [OK]
Quick Trick: Mediator centralizes communication to reduce dependencies [OK]
Common Mistakes:
MISTAKES
  • Thinking Mediator increases direct connections
  • Assuming Mediator removes interfaces
  • Believing communication logic is duplicated

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes