# Database Architecture

The database architecture depends on the kind of system on which the database is running. There are different kinds of database architectures:

* **Centralized**\
  Both the data and the client accessing the data are at the site of the database system
* **Client-Server (two-tier/three-tier)**\
  One server machine executes the work on behalf of multiple client machines
* **Parallel**\
  The database system runs on multi-node and multi-core systems
* **Distributed**\
  This consists of multiple communicating database systems located at different geographical locations

The client-server architecture is most commonly used today, wherein clients remotely connect to the database system that runs on the server.

There are two kinds of client-server architecture:

![](/files/-M5-0_Ci5sTlkaUbP1fv)In the **two-tier** architecture, client programs communicate with the database over a network, using ODBC/JDBC/Embedded SQL.

In the **three-tier** architecture, client programs first communicate with an application server, which in-turn communicates with the database system. This is commonly used for web-based applications.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vikram-bajaj.gitbook.io/cs-gy-6083-principles-of-database-systems/dbms-internals/database-architecture.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
