It helps to design, develop, implement, and maintain DBMS
A DBMS architecture allows us to divide the database system into individual , modifiable components
A Database stores critical information
helps access data quickly and securely
Therefore, selecting the correct Architecture of DBMS helps in easy and efficient data management.
The DBMS design depends upon its architecture
The client/server architecture consists of many PCs and a workstation connected in a network.
The basic client/server architecture is used to deal with a large number of PCs, web servers, database servers and other components that are connected with networks.
DBMS architecture depends upon how users are connected to the database.
Types of DBMS Architecture
• 1-Tier/single tier Architecture
Simplest DB architecture where database is directly available to the user
the client, server, and the Database are all present on the same machine.
For Example- To learn SQL we set up an SQL server and the database on the local system.
Can directly interact with the relational database and execute operations.
Used for development of the local application, where programmers can directly communicate with the database for the quick response.
The industry won’t use this architecture they logically go for 2-Tier and 3-Tier Architecture.
2-Tier Architecture
similar to a basic client-server model.
The application at the client’s end directly communicates with the database at the server side by establishing a connection
APIs like ODBC and JDBC are used for this interaction
presentation layer runs on a client (PC, Mobile), and data is stored on a server called the second tier
maintenance and understanding are easier, compatible with existing systems
However, this model gives poor performance when there are a large number of users.
In the above 2 Tier client-server architecture, we can see that one server is connected with clients 1, 2, and 3.
3-Tier Architecture
most popular client server architecture in DBMS
the development and maintenance of functional processes, logic, data access, data storage, and user interface is done independently as separate modules
Three Tier architecture contains a presentation layer (your PC, Tablet, Mobile, etc.), an application layer (server), and a database server.
application layer :
communicating the user’s request to the DBMS system and send the response from the DBMS to the user.
another layer between the client and the server
processes functional logic, constraint, and rules before passing data to the user
its design is an extension of the 2-tier client server architecture
used in the case of large web applications.
• Enhanced scalability: due to distributed deployment of application servers. Now, individual connections need not be made between client and server.
• Data Integrity: is maintained. Since there is a middle layer between the client and the server, data corruption can be avoided/removed.
Security is improved. This type of model prevents direct interaction of the client with the server thereby reducing access to unauthorized data.