47
Consistency & Replication in Distributed Systems Distributed Systems Sistemi Distribuiti Andrea Omicini [email protected] Ingegneria Due Alma Mater Studiorum—Universit` a di Bologna a Cesena Academic Year 2010/2011 Andrea Omicini (Universit` a di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 1 / 32

Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Consistency & Replication in Distributed SystemsDistributed Systems

Sistemi Distribuiti

Andrea [email protected]

Ingegneria DueAlma Mater Studiorum—Universita di Bologna a Cesena

Academic Year 2010/2011

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 1 / 32

Page 2: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Outline

Outline

1 Introduction

2 Data-centric Consistency Models

3 Client-centric Consistency Models

4 Replica Management

5 Other Issues

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 2 / 32

Page 3: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Disclaimer

These Slides Contain Material from[Tanenbaum and van Steen, 2007]

Slides were made kindly available by the authors of the book

Such slides shortly introduced the topics developed in the book[Tanenbaum and van Steen, 2007] adopted here as the main book ofthe course

Some of the material from those slides has been re-used in thefollowing, and integrated with new material according to the personalview of the teacher of this course

Every problem or mistake contained in these slides, however, shouldbe attributed to the sole responsibility of the teacher of this course

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 3 / 32

Page 4: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Introduction

Outline

1 Introduction

2 Data-centric Consistency Models

3 Client-centric Consistency Models

4 Replica Management

5 Other Issues

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 4 / 32

Page 5: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Introduction

Reasons for Replication

Replication of Data

Increasing the reliability of systems

Improving performance

Scaling

in numbersin geographical area

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 5 / 32

Page 6: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Introduction

Issues of Replication

Benefits in Distributed Systems

Reliability

Fault tolerance

Accessibility

Performance

Scalability

Problems in Distributed Systems

Costs

computational resourcesbandwidth

Consistency

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 6 / 32

Page 7: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Introduction

Issues of Replication

Benefits in Distributed Systems

Reliability

Fault tolerance

Accessibility

Performance

Scalability

Problems in Distributed Systems

Costs

computational resourcesbandwidth

Consistency

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 6 / 32

Page 8: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Introduction

The Problem of Consistency

Consistency models

Before discussing how to face the problem of consistency, we need todefine the notion of consistency itself

Different interpretations are available, some of them fitting one ormore application scenarios

This leads to the definition of different models of consistency. . .

. . . which are then amenable of different implementations, whosefeatures may affect the effectiveness of the model

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 7 / 32

Page 9: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Outline

1 Introduction

2 Data-centric Consistency Models

3 Client-centric Consistency Models

4 Replica Management

5 Other Issues

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 8 / 32

Page 10: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Conceptual Premise

Replicating data

Historically, the first things to be distributed are data

So, the first problem to be addressed is how to ensure consistency ofdata across distributed copies. . .

. . . and the actions to be accounted for are operations over data

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 9 / 32

Page 11: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

General Organisation of a Distributed Data Store

[Tanenbaum and van Steen, 2007]

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 10 / 32

Page 12: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Consistency Model

Definition

A consistency model is essentially a contract among the processes and thedata stores, ensuring the correctness of data given a set of rules thatprocesses have to follow

Of course, what is “correct” also depend on what processes expect –which might be also difficult to define in absence of a global clock

Observation

The above definition of consistency model shifts the focus from thereplicated data to the processes using data—so, focussing on the notion ofconsistency in the use of data, based on the application needs

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 11 / 32

Page 13: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Consistency Model

Definition

A consistency model is essentially a contract among the processes and thedata stores, ensuring the correctness of data given a set of rules thatprocesses have to follow

Of course, what is “correct” also depend on what processes expect –which might be also difficult to define in absence of a global clock

Observation

The above definition of consistency model shifts the focus from thereplicated data to the processes using data—so, focussing on the notion ofconsistency in the use of data, based on the application needs

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 11 / 32

Page 14: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Continuous Consistency

Goal

Imposing limits to deviations between replicas

Deviations

numerical deviations—absolute / relative

staleness deviations—e.g., “fresh” weather reports

ordering deviations—e.g., distributed updating of replicas, waiting forconfirmation

This defines the notion of continuous consistency

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 12 / 32

Page 15: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Continuous Consistency

Goal

Imposing limits to deviations between replicas

Deviations

numerical deviations—absolute / relative

staleness deviations—e.g., “fresh” weather reports

ordering deviations—e.g., distributed updating of replicas, waiting forconfirmation

This defines the notion of continuous consistency

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 12 / 32

Page 16: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Inconsistency

Conit

Notion of unit of consistency, called conit

Each data store either implicitly or explicitly suggests its conit

However, a consistency model (and replication) is defined around asuitably-designed notion of conit

Deviation is measured in terms of differences of conits

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 13 / 32

Page 17: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

The Choice of Granularity of Conit I

[Tanenbaum and van Steen, 2007] Larger conit

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 14 / 32

Page 18: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

The Choice of Granularity of Conit II

Smaller conit, minor need for propagation[Tanenbaum and van Steen, 2007]

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 15 / 32

Page 19: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Consistent Operations Ordering

Main issue

From parallel and concurrent environments, where several processesshare resources, and have to access them simultaneously

New models conceptually extending data-centric ones: whencommitting on a state for replicas, an agreement has to be reachedamong processes upon the global ordering of updates

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 16 / 32

Page 20: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Sequential Consistency

Main idea

All update operations are seen by all processes in the same order

Definition

A data store is sequentially consistent when the result of anyexecution is the same as if the (read and write) operations by allprocesses on the data store were executed in some sequential order,and the operations of each individual process appear in this sequencein the order specified by its program

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 17 / 32

Page 21: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Sequential Consistency

Main idea

All update operations are seen by all processes in the same order

Definition

A data store is sequentially consistent when the result of anyexecution is the same as if the (read and write) operations by allprocesses on the data store were executed in some sequential order,and the operations of each individual process appear in this sequencein the order specified by its program

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 17 / 32

Page 22: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Causal Consistency

Main idea

Weakening sequential consistency

Based on the notion of cause/effect relation

Unrelated operations are concurrent ones

Ordering is limited to operations in cause/effect relation

Definition

A data store is causally consistent when all processes see writeoperations in cause/effect relation in the same order

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 18 / 32

Page 23: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Data-centric Consistency Models

Causal Consistency

Main idea

Weakening sequential consistency

Based on the notion of cause/effect relation

Unrelated operations are concurrent ones

Ordering is limited to operations in cause/effect relation

Definition

A data store is causally consistent when all processes see writeoperations in cause/effect relation in the same order

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 18 / 32

Page 24: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Outline

1 Introduction

2 Data-centric Consistency Models

3 Client-centric Consistency Models

4 Replica Management

5 Other Issues

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 19 / 32

Page 25: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Switching Perspective

Sharing data in mobile computing scenario

A client connects with different replicas over time

Differences between replicas should be made transparent

No particular problems of simultaneous updates, here

Client-centric consistency models

In essence, they ensure that whenever a client connects to a newreplica, that replica is up to date according to the previous accesses ofthe client to the same data in the other replicas on different sites

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 20 / 32

Page 26: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Switching Perspective

Sharing data in mobile computing scenario

A client connects with different replicas over time

Differences between replicas should be made transparent

No particular problems of simultaneous updates, here

Client-centric consistency models

In essence, they ensure that whenever a client connects to a newreplica, that replica is up to date according to the previous accesses ofthe client to the same data in the other replicas on different sites

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 20 / 32

Page 27: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Eventual Consistency

Scenario

Large, distributed data store with almost no update conflictsTypically, a single authority updating, with many processes simplyreadingThe only conflict is read-write conflict where one process wants toupdate a data item while another concurrently attempts to read thesame dataExamples: DNS changes, Web content

Issues

Non-updated data may be provided to readersIn most cases, such an inconsistency might be acceptable to readersTypically, if no update takes place for a while, gradually all replicaswill become consistentThis sort of consistency is called eventual consistency

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 21 / 32

Page 28: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Eventual Consistency

Scenario

Large, distributed data store with almost no update conflictsTypically, a single authority updating, with many processes simplyreadingThe only conflict is read-write conflict where one process wants toupdate a data item while another concurrently attempts to read thesame dataExamples: DNS changes, Web content

Issues

Non-updated data may be provided to readersIn most cases, such an inconsistency might be acceptable to readersTypically, if no update takes place for a while, gradually all replicaswill become consistentThis sort of consistency is called eventual consistency

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 21 / 32

Page 29: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Monotonic Reads

Definition

A data store is said to provide monotonic-read consistency if the followingcondition holds

If a process reads the value of a data item x, any successive readoperation on x by the process will always return that same value or amore recent value

Example

Distributed e-mail database

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 22 / 32

Page 30: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Monotonic Reads

Definition

A data store is said to provide monotonic-read consistency if the followingcondition holds

If a process reads the value of a data item x, any successive readoperation on x by the process will always return that same value or amore recent value

Example

Distributed e-mail database

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 22 / 32

Page 31: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Monotonic Writes

Definition

A data store is said to provide monotonic-write consistency if the followingcondition holds

A write operation by a process on a data item x is completed beforeany successive operation on x by the same process

Idea

The order of updates is maintained over distributed replicas

Example

Software library under development

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 23 / 32

Page 32: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Monotonic Writes

Definition

A data store is said to provide monotonic-write consistency if the followingcondition holds

A write operation by a process on a data item x is completed beforeany successive operation on x by the same process

Idea

The order of updates is maintained over distributed replicas

Example

Software library under development

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 23 / 32

Page 33: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Monotonic Writes

Definition

A data store is said to provide monotonic-write consistency if the followingcondition holds

A write operation by a process on a data item x is completed beforeany successive operation on x by the same process

Idea

The order of updates is maintained over distributed replicas

Example

Software library under development

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 23 / 32

Page 34: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Read Your Writes

Definition

A data store is said to provide read-your-writes consistency if the followingcondition holds

The effect of a write operation by a process on data item x will alwaysbe seen by a successive read operation on x by the same process

Idea

Avoid the “web page failed update” effect

Example

Password updating

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 24 / 32

Page 35: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Read Your Writes

Definition

A data store is said to provide read-your-writes consistency if the followingcondition holds

The effect of a write operation by a process on data item x will alwaysbe seen by a successive read operation on x by the same process

Idea

Avoid the “web page failed update” effect

Example

Password updating

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 24 / 32

Page 36: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Read Your Writes

Definition

A data store is said to provide read-your-writes consistency if the followingcondition holds

The effect of a write operation by a process on data item x will alwaysbe seen by a successive read operation on x by the same process

Idea

Avoid the “web page failed update” effect

Example

Password updating

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 24 / 32

Page 37: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Writes Follow Reads

Definition

A data store is said to provide writes-follow-reads consistency if thefollowing condition holds

A write operation by a process on data item x following a previousread operation on x by the same process is guaranteed to take placeon the same or a more recent value of x that was read

Idea

Writes affect only up-to-date data items

Example

Comments to posts on FaceBook

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 25 / 32

Page 38: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Writes Follow Reads

Definition

A data store is said to provide writes-follow-reads consistency if thefollowing condition holds

A write operation by a process on data item x following a previousread operation on x by the same process is guaranteed to take placeon the same or a more recent value of x that was read

Idea

Writes affect only up-to-date data items

Example

Comments to posts on FaceBook

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 25 / 32

Page 39: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Client-centric Consistency Models

Writes Follow Reads

Definition

A data store is said to provide writes-follow-reads consistency if thefollowing condition holds

A write operation by a process on data item x following a previousread operation on x by the same process is guaranteed to take placeon the same or a more recent value of x that was read

Idea

Writes affect only up-to-date data items

Example

Comments to posts on FaceBook

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 25 / 32

Page 40: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Replica Management

Outline

1 Introduction

2 Data-centric Consistency Models

3 Client-centric Consistency Models

4 Replica Management

5 Other Issues

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 26 / 32

Page 41: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Replica Management

Key Issue of Replication

Supporting replication in a distributed system

means deciding where, when and by whom replicas should be placed

and which mechanisms should be adopted to keep replicas consistent

Two subproblems

placing replica servers

placing content

not the same problem indeed

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 27 / 32

Page 42: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Replica Management

Key Issue of Replication

Supporting replication in a distributed system

means deciding where, when and by whom replicas should be placed

and which mechanisms should be adopted to keep replicas consistent

Two subproblems

placing replica servers

placing content

not the same problem indeed

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 27 / 32

Page 43: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Other Issues

Outline

1 Introduction

2 Data-centric Consistency Models

3 Client-centric Consistency Models

4 Replica Management

5 Other Issues

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 28 / 32

Page 44: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Other Issues

Replicating Services

Replication does not mean replicating data—not merely

services could be replicated as well in a distributed setting

for the same reasons of data stores

this essentially means replicating functions, which may / may notinsist on the same data store

two layers for replications, with two consistency & replication models

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 29 / 32

Page 45: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Other Issues

Replicating Processes

Mobility & cloning for replication

processes could also be replicated in a distributed mobile setting

again, for the same reasons of data stores

this might require cloning. . .

. . . but also higher-level mechanisms, like goal-passing

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 30 / 32

Page 46: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

References

References I

Tanenbaum, A. S. and van Steen, M. (2007).Distributed Systems. Principles and Paradigms.Pearson Prentice Hall, Upper Saddle River, NJ, USA, 2nd edition.

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 31 / 32

Page 47: Consistency & Replication in Distributed Systems - Distributed … · 2013-07-09 · Client-centric Consistency Models Monotonic Reads De nition A data store is said to provide monotonic-read

Consistency & Replication in Distributed SystemsDistributed Systems

Sistemi Distribuiti

Andrea [email protected]

Ingegneria DueAlma Mater Studiorum—Universita di Bologna a Cesena

Academic Year 2010/2011

Andrea Omicini (Universita di Bologna) 9 – Consistency & Replication A.Y. 2010/2011 32 / 32