×

3- Tier Architecture in DBMS

Three-tier architecture is an application software architecture that arranges the output into three parts or tiers that are:  the presentation tier, where the user interacts with the application; the application tier, where data is handled; and the third is data tier, where the data or the output related to the application is stored.

The main benefit of three-tier architecture in DBMS is that each tier performs on its framework. Each tier can be developed individually by their development team and upgraded as needed without touching the other tiers.

3-Ters in DBMS

3- Tier Architecture in DBMS

1.   Presentation tier

The Presentation tier or user interface tier is the communication layer where the end-user communicates with the application with the help of the presentation layer. The main purpose of this tier is to present the information to the end user and collect information from the user. It is the top tier. The presentation layer can run on a web browser or application on a desktop as a graphical user interface (GUI). Web browser presentation layers are developed using HTML, CSS, and JavaScript, and Desktop applications can be developed using various languages depending on the platform.

2.   Application tier

The application tier is mostly called the client-side tier, and the logic tier. It is the main component of the application. The information collected in the presentation tier is prepared, and the application tier transfers the requests (input) to the servers on the other side. It acts as an intermediate between the user and the server. The application tier can also add, delete or modify data in the data tier.

The client-side tier is developed using languages like Python, Java, Perl, PHP, or Ruby, and it interacts with the data tier using an application programming interface (API). 

3.   Data tier

The data tier, or database tier, is the last in the architecture of the DBMS. It is the tier where the processed data and information are stored and managed. It is simply the client-side server or back end of the database. The data tier can be composed of any relational database management system such as PostgreSQL, MySQL, MariaDB, Oracle, DB2, Informix, or Microsoft SQL Server or in a NoSQL Database server such as Cassandra, CouchDB, or MongoDB. 

Note: In a three-tier architecture application, the first and last tiers, the presentation tier and data tier, cannot communicate directly with each other; all the communication is done with the help of the application tier.

Advantages of 3-tier architecture in DBMS

Benefits of three-tier architecture in DBMS include:

  • Faster development: Each tier of DBMS can be developed once by separate teams, it helps an organization to grow in the market faster, and the latest languages and tools can be used in each tier.
  • Less interdependence: Any error or fault in one tier does not or is less likely to affect the performance of the other two tiers.
  • Security: As the presentation and data tiers cannot communicate directly, there will be no unauthorized access, and if any, it can be prevented.

Disadvantages of three-tier architecture in DBMS

  • Complex:  due to the availability of three layers/ tiers, data is dependent on all three tiers, which makes it complex and hard to implement.
  • Late responses: sometimes, it can be difficult to get output due to the presence of middle layers, it can delay the response from the server/data side, but it can be resolved with the help of efficient server administration.

Role of Three-tier application in web development

Three tiers of DBMS performs several roles in web development; they have a different name but perform similar functions:

  • The presentation tier is the web server in web development which provides the user interface to interact with the end user. Usually, it is a web page or a website, for example, an e-commerce site. The content on the web page of an e-commerce site can be static or dynamic; a user can create an account, add products to the cart, and add address and payment details. It is mainly developed by using HTML, CSS, and JavaScript.
  • The application server is the middle tier of the application, where the user gives input. Like the above example of an e-commerce site, the application server connects with the main (data) server to return if the product is available or not and checks if the entered pin code is correct. This tier is usually developed using Python, Ruby, or PHP and runs on frameworks like Django, Rails, and ASP.NET.
  • The database server or the web development data tier is the web application's back-end tier. It runs on database management software, such as MySQL, Oracle, DB2, or PostgreSQL.

Related Topics

Disavantages of RDBMS

RDBMS offers many features when handling the data, but it also has certain limitations that can be overcome by choosing an alternative data model. The limitations of the Relational Data...

3 minutes read.

Red-Black Tree Properties in DBMS

What is a Red-Black Tree? A red-black tree is a kind of self-balancing binary search tree. The extra bit that each node keeps denoting "color"-either "red" or "black"-is needed to keep...

3 minutes read.

What is a Cloud Database

Cloud computing is the process of commoditizing data storage and processing time using standardized technologies. Cloud databases are databases that are hosted on cloud computing platforms such as Salesforce, GoGrid,...

4 minutes read.

What is Transaction in DBMS

A transaction is a collection of logically related operations which reads and possibly updates the various data items in the database. Usually, a transaction is initiated by a user program written in high-level...

3 minutes read.

Entity and Entity set in DBMS

What is DBMS? A database management system (DBMS) is a software application that interacts with end-users, other applications, and the database itself to capture and analyze the data. A DBMS allows...

3 minutes read.

DBMS Schema

Schema It is a physical representation of data that appears in the database management system. In simple words, a schema is the structure of any database.It defines how the data is stored...

2 minutes read.

Domain in DBMS

Constraints: Constraints in DBMS are a set of guidelines that guarantee that authorized users who modify the database do not alter the consistency of the data. Constraints are expressed in DDL...

3 minutes read.

Normalization in DBMS: 1NF, 2NF, 3NF, BCNF & 4NF with Examples

Normalization is a technique of organizing the data in the database. It is a systematic approach which is used to remove or reduce data redundancy in the tables and remove the...

7 minutes read.

3- Tier Architecture in DBMS

Three-tier architecture is an application software architecture that arranges the output into three parts or tiers that are:  the presentation tier, where the user interacts with the application; the application...

4 minutes read.

DBMS Languages

User can access, update, delete, and store data or information in the database using database languages. The following are the databases languages in the database management system: Data Definition Language Data Manipulation...

3 minutes read.

ER Model: Entity Relationship Diagram (ERD) with Examples

ER model stands for Entity-Relationship Model. It is a high-level data model diagram which defines the conceptual view of the database. It is a blueprint or design of a database that will...

2 minutes read.

Candidate Key in DBMS

Candidate key in DBMS: The candidate key is a single column or the set of columns that uniquely identifies the rows of data in the database table. It is a...

2 minutes read.

Types of Data Abstraction in DBMS

What Is Data Abstraction? To ship an email, you want to know the address. But to send the email, you don't need to see where the email is physically stored. You...

6 minutes read.

Redundancy in Database Management System

Redundancy in a database management system (DBMS) refers to the duplication of data within the database. This duplication can occur in multiple ways, such as having multiple copies of the...

13 minutes read.

Data Abstraction in DBMS

Introduction Data abstraction is a fundamental concept in database management systems (DBMS). It refers to the process of hiding the details of how data is stored and retrieved from the user,...

3 minutes read.

Functional Dependencies

Functional Dependencies (FD) in the relational database management system occurs when one attribute in a relation uniquely determines other attribute in that relation. It describes the relation between the attributes. The term functional...

2 minutes read.

How to draw ER-Diagram in DBMS?

Entity Relationship Diagrams, or ERDs, are diagrams that assist you in visualizing your database design. An ERD, also called anER diagram or ER model,describes data and how parts of the data interact. ERDs are crucial in database architecture and projects that call for...

9 minutes read.

Trigger in DBMS

Trigger in DBMS: A trigger is a procedure of SQL statements, which is automatically fired when the DML statements are executed on the table of the database. Triggers are the...

3 minutes read.

Applications of DBMS

There are various fields where a database management system is used. Following are some applications which make use of the database management system: 1. Railway Reservation System: In the railway reservation...

7 minutes read.

Query optimization in DBMS

Choosing an effective execution strategy to execute a query is a process known as query optimization. After the decision-making process of query parsing, which determines how many distinct ways a given...

5 minutes read.