×

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

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.

File Organization in DBMS

File Organization in DBMS: A database contains a huge amount of data, which is stored is in the physical memory in the form of files. A file is a set...

9 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.

Concurrency Control Protocols

Concurrency Control Protocols Concurrency control protocols ensure the atomicity, serializability and isolation of the concurrent transactions. The Concurrency control protocols can be broadly classified into the following categories: Lock Based ProtocolTimestamp protocol Lock Based Protocol In this protocol,...

5 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.

BCNF in DBMS

BCNF stands for Boyce–Codd Normal Form. What is the Normal form? The normal form is mainly used to reduce the redundancy of the database tables. Or we can say that the normal form...

4 minutes read.

ER Diagram of Company Database in DBMS

Entity Relationship Diagram Entity Relationship Diagrams, or ER Diagrams for short, are diagrams that show the relationships among entity sets that are stored in databases. Alternatively said, ER diagrams assist in...

3 minutes read.

Difference between Relational and Non-Relational Databases

Databases have become an integral part of our lives, from powering big websites like Amazon and Netflix to everyday tasks like remembering our passwords. With such an indispensable role in...

7 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.

Generalization in DBMS

Generalization in DBMS In the database management system, generalization is a concept combining the common attributes of two or more lower-level entity and form a new higher level with the common...

3 minutes read.

Advantages of B-Tree in DBMS

A self-balancing search tree is the B-Tree. It is assumed that everything is in the main memory in most other self-balancing search trees (such as AVL and Red-Black Trees). We must...

3 minutes read.

What is RDBMS?

To discuss the Relational Database Management System, there are some terms and concepts you need to know. Database Any collection of related information is called a database. The phone book is...

5 minutes read.

Why we need Distributed Database Management System

Assuming there is a very strong single machine having properties like: Heaps of memory.Gigantic measure of dependable stockpiling with very quick I/O.Incredible handling rate and processing power (10s, 100s and might...

4 minutes read.

Founder of DBMS

The first database management system was built to automate the business of the General Electric Company. It was built by a small group of programmers. The Integrated Data Store IDS...

4 minutes read.

Difference between DBMS and RDBMS

Database Management System A DBMS is system software which is used to store and manage the data in the database. It was introduced in 1960 for storing the data or information. This system allows...

3 minutes read.

DBMS View: Read, Update, Create and Drop

View in DBMS: The View is a logical or virtual table that allows users to view or manipulate parts of the table. View is also a table which consists of...

2 minutes read.

Red-Black Tree Deletion in DBMS

Introduction To Red Black Tree Each node's extra bit in a red-black tree, a type of self-balancing binary search tree, is frequently understood as the color (red or black). The balance...

3 minutes read.

Enforcing Integrity Constraints in DBMS

Introduction Integrity constraints are rules that specify the conditions that must be met for the data in a database to be considered valid. These constraints help to ensure the accuracy and...

2 minutes read.

View Serializability in DBMS

View Serializability It is a type of serializability that can be used to check whether the given schedule is view serializable or not. A schedule called as a view serializable if it is view...

4 minutes read.

Er Diagram Symbols and Notations in DBMS

Entity Relationship Diagram Entity Relationship Diagrams, or ER Diagrams for short, are diagrams that show the relationships among entity sets that are stored in databases. Alternatively said, ER diagrams assist in...

6 minutes read.