Facade Design Pattern

 

Type: Structural Design Pattern

Use Case: To Hide Complexity from Client.




Employee Facade has a Employee DAO

EmployeeClient has a EmployeeFacade


Complex Example:







Facade vs Proxy
Proxy can only have one class interface not many

Facade Vs Adapter















Comments

Popular posts from this blog

Microservice Pattern: SAGA

Microservice Pattern: Database per service Context

SQL vs NoSQL | Difference between SQL & NoSQL | SQL Vs NoSQL Tutorial | SQL, NoSQL system design