Distributed architectures
Distributed DB
Client/server
Data replication
Parallel architecture
Data warehouses
Distributed systems relevant properties
Portability
Interoperability
SQL execution types
Compile and go
Compile and store
Advantages of distributed database systems
Functional:
Technological
*
Data fragmentation types and properties (distribued database systems)
Given a relation R, a data fragment is a subset of R in terms of tuples, or schema or both.
Fragmentation criteria:
Properties:
Transparency levels (distributed dbms)
desribe the knowledge of a data distribution
an application should operate differently depending on the trasparency level supported by the dbms
Fragmentation trasparency
allocation transparency
language transparency

Transaction types in distributed dbms
ACID properties in relation to distributed dbms
Atomicity
Consistency
Isolation
Durability
2PC
Goal: coordination of the conclusion of a distributed transaction
Parallel with a wedding:
One coordinator (transaction manager), several DBMS servers that partecipate (resource managers), any partecipant can be a coordinator (even client)
TM new log records:
RM new log record:
Protocol

Failure of partecipant and coordinator in distributed systems
RM
TM
Network problems:
X-OPEN-DTP

Parallel DBMS
Through: multiprocessor systems or computer clusters
Queries can be efficiently parallelized: large table scans, group bys
Inter-query parallelism: different queries are scheduled on different processors, often used in OLTP systems
Intra-query: subparts of the same query are executed on different processors (OLAP, heavy queries)
DBMS benchamarks
TPC C (TPC E): emulates OLTP
TPC H: OLAP
TPCx-HS: Big data management (Hadoop clusters)
2PC: Uncertainty Window
It is between when the RM send the ready/not ready message until it receives the global decision from the TM.
Local resoruces are locked during this time. That is why the uncertainty windows should be as small as possible.