Multitier Architecture Flashcards
What is a multi tier project structure?
A multi tier architecture project structure is a client-server architecture in which the presentation, logic and data layers are physically separated.
Which layers make up a multi tier architecture?
Presentation layer, Logic layer and Data layer.
Briefly explain what the Presentation layer is and its purpose.
Presentation layer is the top level of MA and is the UI. The main function of the interface is to translate tasks and results to something the user can understand. This is the frontend.
Briefly explain what the Logic layer is and its purpose.
Logic layer moves and processes data between the two surrounding layers. It contains core business logic files written in PHP. These files should include functions that are responsible for processing the data received from the presentation layer, as well as other functions that are used to manipulate the data.
Briefly explain the Data layer and its purpose.
This is where information is stored and retrieved from a database or file system. The information is then passed back to the logic tier for processing, and then eventually back to the user. This layer contains files related to data storage, such as the database configuration file, SQL queries, and functions that are responsible for interacting with the database.
What are the benefits and drawbacks of multi tier architecture project structure?
Advantages:
- Scalable
- Increased security
- Reusable
Disadvantages:
- Increased effort
- Increased complexity