2-tier architecture is a type of client-server architecture where the application is divided into two layers (tiers):
Client Tier (Presentation Layer):
This is the user interface, typically an application or a browser running on a user's device.
Server Tier (Data Layer):
This handles the database and data access logic.
The server directly communicates with the database.