By WalkingTree  February 01,  2021

Layered Architecture - A complete overview

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.

Blogs

Translate »
Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.