Façade vs. Mediator

后端 未结 8 1407
粉色の甜心
粉色の甜心 2020-12-07 08:46

I\'ve been researching the difference between these two patterns.

I understand that facade encapsulates access to a sub system and mediator encapsulates the interac

8条回答
  •  执念已碎
    2020-12-07 09:17

    I thought the distinction was directional: facade is a one-way communication between client and facade; mediator can be a two-way conversation, with messages flowing back and forth between the client and mediator.

提交回复
热议问题