EEE207 Database Concepts Lecture 8
EEE207 Database Concepts Lecture 8
DATABASE ARCHITECTURES
Database Architectures
• The architecture of a database system is greatly influenced by the
underlying computer system on which the database system runs.
• Database systems can have
– Centralized architectures, where one server machine executes
operations on the database. This includes standalone and simple
networked client server systems (most common)
– Parallel computer architectures. A database may be hosted on
Multiple Processors (CPU) to improve querying and response times.
(high transaction volume systems, banking, telecoms systems, real
time)
– Distributed databases span multiple geographically separated
machines to provide backup, data redundancy, improved performance
for local users ( e-mail systems g-mail, ERP systems – accounts,
customer service, procurement, HR)
Centralized Architectures
• Centralized architectures, where one server machine executes
operations on the database. This includes standalone and simple
networked client server systems (most common)
– A laptop or PC will normally have a centralized architecture. MS
Access is an example of a centralized database.
– A client server, either networked or standalone is now a
common option. The user interface is separated from the
database. MySQL, MS SQL are example of client server based
databases. Combining MySQL with MS Access gives us a simple
client server architecture.
– Clients systems use ODBC or JDBC or other connectors to all
multiple applications and users access to the database. The
client server can also be a spread sheet, C++ program, a Java
Program, Visual Basic, PHP webpage, Java script opr even
another database to name a few.
Centralized Databases
• Stand Alone
• Network Architecture
Typical Server Design
• In a client server design, the processing of data is done by the
SQL engine i.e. sorting, searching, deleting, inserting etc.
M - denotes memory
P - denotes a processor,
Disks (data) are shown as cylinders
Lines are internal bus connections or high speed
fiber or cable connections.
Parallel computer architectures.
• There are several architectural models for parallel
machines.
– Shared memory. All the processors share a common
memory on the server
– Shared disk. All the processors share a common set of
disks. Shared-disk systems are sometimes called
clusters.
– Shared nothing. The processors share neither a
common memory or common disk .
– Hierarchical. This model is a hybrid of the preceding
three architectures.
Distributed Systems
• Distributed databases span multiple geographically
(near or far) separated machines.
• This allows sharing of data, provide backup systems,
data redundancy
• There is improved performance for local users and
sharing of data for remote users.
• Example include, e-mail systems such as g-mail, ERP
systems – with accounts, customer service,
procurement, HR hosted on different machine.
Distributed Systems
• The failure of one site is detected
by the working systems, and
appropriate action taken to
recover from the failure.
• When the failed site recovers or is
repaired, it is integrate smoothly
back into the system.
• The ability of most of the system
to continue to operate despite
the failure of one site results in
increased availability.
• Availability is crucial for database
systems.
The network may be a local • Loss of access to data by, for
area network (LAN) or a example, an airline may result in
wide are network (WAN) via the loss of potential ticket buyers
to competitors.
cable, wireless or satellite
A database must ensure the availability and integrity of the underling
data with minimum intervention of the users of the data. This feature is
characteristic of Database Management Systems (DBMS) and
distinguishes them from file systems databases
L
One
company-
wide
T warehouse