Home  >  Article  >  What is N-tier architecture

What is N-tier architecture

清浅
清浅Original
2019-03-11 15:07:186043browse

N-tier architecture refers to a multi-tier architecture, where N refers to 1 or any number above 1. It physically and logically separates processing, data management, and presentation functions, which means that different functions can be hosted on multiple machines, improving efficiency and making management easier.

Many excellent products are usually built on multi-tier architecture, or n-tier architecture. At Stackify, we love talking about the many tools, resources, and concepts that can help you build better. (Check out more of our tips and tricks here) So in this post, we will discuss n-tier architecture, how it works, and what you need to know to build better products using multi-tier architecture.

What is N-tier architecture

【Recommended course: MVC Tutorial

Definition of N-tier architecture

N-tier architecture is also called multi-tier architecture because the structure is designed so that processing, data management and presentation functions are physically and logically separation. This means that these different functions can be hosted on multiple machines or clusters to ensure that services are provided without resource sharing and, therefore, the services are delivered at maximum capacity. The "N" in its name, N-tier architecture, refers to any number above and including 1. It not only enables the software to get the best rate service but also makes it easier to manage

Composition of N-tier architecture

N-tier architecture divides the application into three different Layers, respectively, logical layer, presentation layer and data layer

Logical layer: The logical layer is where all the "thinking" happens, it knows what the application allows and what is possible, and makes other decisions. This logical layer is also the logical layer that writes data to the data layer.

Data Layer: The data layer is where all the data used in the application is stored. We can store data securely on this layer, perform transactions, and even search data volumes and volumes within seconds.

Presentation layer: The presentation layer is the user interface, which is what users of the software see and interact with. This is where they enter the required information. This layer also acts as a middleman between the data layer and the user, passing the different operations of the user to the logic layer

What is N-tier architecture

Benefits of N-tier architecture

Security: Each of the three layers can be secured individually using different methods.

Easy to manage: Each layer can be managed independently, adding or modifying each layer without affecting other layers.

Scalability: If more resources need to be added, this can be done per layer without affecting other layers.

Flexibility: In addition to independent scalability, each layer can be expanded in any way required.

In short, using N-tier architecture, you can adopt new technologies and add more components without having to rewrite the entire application or redesign the entire software, making it easier to expand or maintain. At the same time, in terms of security, sensitive or confidential information can be stored in the logical layer away from the presentation layer, making it more secure.

Summary: The above is the entire content of this article, I hope it will be helpful to everyone.

The above is the detailed content of What is N-tier architecture. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn