By WalkingTree February 01, 2021
The layered architecture pattern, also known as the n-tier architecture pattern. This n-tier architecture is like a standard for most Java applications and is widely known by most developers and architects. The layered architecture pattern does not specify the number of layers but the most layered architectures consist of four standard layers i.e the presentation, business, persistence, and database.
The business layer and persistence layer are combined into a single business layer in a few cases. Smaller applications may have only three layers, whereas larger and more complex business applications may include five or more layers.
- Presentation Layer – This layer is responsible for handling user interface and browser communication logic.
- Business Layer – Executes specific business logic and passes that information to the presentation layer.
- Persistence Layer – Retrieves data from the database layer and passes it to the business layer.
- Database Layer – This layer stores the data.
Let’s take a look at some of the key concepts of layered architecture –
- Components in a specific layer deal only with the logic that pertains to that layer. For example, components in the presentation layer deal only with presentation logic, and the components in the business layer deal only with business logic.
- The changes made in one layer of the architecture generally don’t affect components in other layers, the change is isolated to the components within that layer.
- The requests are allowed to bypass a layer and go directly to the layer below it.
Read on to know more about layered architecture and its use cases.
A puzzle with dice of discovery, interpretation, ideation, experimentation and evolution—in real-world scenarios when clubbed to solve it…
A Search Bar is a blessing on any interface to quickly get you what you’re looking for. But,…
With the advancements in technology, the next differentiator will be ensuring a great experience. When it comes to…