Mediator and Facade Differences

The facade only exposes the existing functionality from a different perspective. The mediator “adds” functionality because it combines different existing functionality to create a new one. You have a logging system. From that logging system you can either log to a file, to a socket, or to a database. Using the facade design pattern you […]