Before we introduce the Session Façade pattern, it is important to cover the façade patterns, which are one of the structural design patterns mentioned in the Gang of Four (GoF) book.
The main goal is to encapsulate the complexity of business logic in a business interface. Broadly speaking, this interface only exposes a small number of coarse-grained methods to the client. Each of these interface methods is responsible for controlling the underlying complexity of business logic. In this way, the internal services of finer granularity can be combined into a set of services that are exposed by the interface method.
The benefits of using a façade pattern are as follows:
- It provides coarse‐grained methods for available services.
- It reduces remote calls. A remote client does not need to call many fine...