what are the THREE TIERS
Table of contents
- Web Tier:
- App Tier:
- The app tier, also known as the business logic tier or middle tier, contains the application logic and business rules that govern the behavior of the application.
- DB Tier:
- The DB tier, also known as the data tier or backend tier, is responsible for managing and storing data used by the application.
The terms "web tier," "app tier," and "DB tier" typically refer to different layers or components within a multi-tier architecture, such as a web application. Here's a brief overview of each tier:
Web Tier:
The web tier, also known as the presentation tier or frontend tier, is responsible for handling user interactions and displaying the user interface (UI) of the application.
In a web application, the web tier often consists of web servers or application servers that serve web pages, process user requests, and generate dynamic content.
The web tier interacts with users through web browsers or client-side applications and communicates with the app tier to retrieve or update data as needed.
App Tier:
The app tier, also known as the business logic tier or middle tier, contains the application logic and business rules that govern the behavior of the application.
In a multi-tier architecture, the app tier typically consists of one or more application servers or microservices responsible for processing requests, executing business logic, and coordinating data access.
The app tier interacts with the web tier to receive user requests, performs necessary processing or computations, and communicates with the DB tier to retrieve or store data.
DB Tier:
The DB tier, also known as the data tier or backend tier, is responsible for managing and storing data used by the application.
In a multi-tier architecture, the DB tier usually consists of one or more database servers or database management systems (DBMS) that store and retrieve structured data.
The DB tier handles data persistence, manages transactions, enforces data integrity constraints, and provides mechanisms for querying and manipulating data.
The app tier interacts with the DB tier to perform CRUD (Create, Read, Update, Delete) operations, retrieve data for processing, and store updated data back to the database.
In summary, the web tier handles user interactions and presentation, the app tier implements business logic and application functionality, and the DB tier manages data storage and retrieval. These tiers work together to create a scalable, modular, and maintainable architecture for web applications.