- Java EE 8 Design Patterns and Best Practices
- Rhuan Rocha Jo?o Purifica??o
- 180字
- 2021-07-23 16:54:51
Explaining Facade
Projects can sometimes turn out to be very complex and big, making them difficult to design and organize. To solve this, a great solution is to break a system into subsystems (divide and conquer) and make them less complex and better organized.
The Facade pattern creates a higher-level interface to hide a complexity of a set of interfaces in a subsystem. This pattern reduces the complexity and coupling, minimizing communication and dependencies between subsystems. In the following diagram, you can see the structure of Facade and how it is designed:

In the preceding diagram, we can see the Facade pattern encapsulating all of the calls to subsystems and hiding these calls from the client. The system has one interface, Facade, and the client calls this interface in order to call subsystems. Thus, clients does not call the subsystems directly. With this solution, the client doesn't need to know about the subsystem and its complexity.
This pattern is often used in projects and systems that have high complexity and need to be broken down into subsystems.
- Getting Started with oVirt 3.3
- Containerization with LXC
- 嵌入式操作系統(Linux篇)(微課版)
- Kubernetes從入門到實踐
- 深入理解eBPF與可觀測性
- Linux系統安全基礎:二進制代碼安全性分析基礎與實踐
- STM32庫開發實戰指南:基于STM32F4
- Delphi Programming Projects
- VMware Horizon View Essentials
- 分布式系統設計實踐
- Linux應用大全 基礎與管理
- 辦公自動化教程(Windows7+Office2010)
- Java EE 8 High Performance
- Getting Started with UDK
- Mastering Azure Serverless Computing