the potential dangers of causal consistency and an explicit solution - socc 2012

155
the potential dangers of causal consistency and an explicit solution Peter Bailis, Alan Fekete, Ali Ghodsi, Joseph M. Hellerstein, Ion Stoica UC Berkeley SOCC 2012

Upload: peter-bailis

Post on 10-May-2015

664 views

Category:

Documents


1 download

DESCRIPTION

Paper: http://www.bailis.org/papers/explicit-socc2012.pdf Narration: http://www.vimeo.com/pbailis/explicit-socc12

TRANSCRIPT

Page 1: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

the potential dangersof causal consistencyand an explicit solutionPeter Bailis, Alan Fekete, Ali Ghodsi,Joseph M. Hellerstein, Ion Stoica

UC Berkeley SOCC 2012

Page 2: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

A Story

Page 3: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

A Story

Page 4: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s in a coma!”

A Story

Page 5: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s in a coma!”“Sally’s in a coma!”

A Story“Sally’s okay!”

Page 6: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s in a coma!”“Sally’s in a coma!”

A Story“Sally’s okay!”

Page 7: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s in a coma!”“Sally’s in a coma!”

A Story

“Great news!”

“Sally’s okay!”

Page 8: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s in a coma!”“Sally’s in a coma!”

A Story

“Great news!”

“Sally’s okay!”

Page 9: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s in a coma!”“Sally’s in a coma!”

“Great news!”

“Sally’s okay!”

The Wrong Story

Page 10: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s in a coma!”

“Great news!”

The Wrong Story

Page 11: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s in a coma!”

“Great news!”

The Wrong Story

Page 12: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s in a coma!”

“Great news!”

???The Wrong Story

Page 13: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

The Right Order

“Sally’s in a coma!”

“Great news!”

“Sally’s okay!”

Page 14: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

The Right Order

“Sally’s in a coma!”

“Great news!”

“Sally’s okay!”

Page 15: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

The Right Order

“Sally’s in a coma!”

“Great news!”

“Sally’s okay!”

Page 16: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

CAUSALITY: TL;DRMETADATA AND MODERN SERVICESTHE SITE SCALABILITY WALLSCALING WITH EXPLICIT CAUSALITY

Page 17: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

CAUSALITY: TL;DRMETADATA AND MODERN SERVICESTHE SITE SCALABILITY WALLSCALING WITH EXPLICIT CAUSALITY

Page 18: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

CAUSALITY: TL;DRMETADATA AND MODERN SERVICESTHE SITE SCALABILITY WALLSCALING WITH EXPLICIT CAUSALITY

Page 19: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

CAUSALITY: TL;DRMETADATA AND MODERN SERVICESTHE SITE SCALABILITY WALLSCALING WITH EXPLICIT CAUSALITY

Page 20: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

CAUSALITY: TL;DRMETADATA AND MODERN SERVICESTHE SITE SCALABILITY WALLSCALING WITH EXPLICIT CAUSALITY

Page 21: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

CAUSALITY: TL;DRMETADATA AND MODERN SERVICESTHE SITE SCALABILITY WALLSCALING WITH EXPLICIT CAUSALITY

Page 22: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 23: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

1978“Time, Clocks, and the Ordering of Events

in a Distributed System” by Leslie Lamport

Page 24: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

1978“Time, Clocks, and the Ordering of Events

in a Distributed System” by Leslie Lamport

1994“Causal Memory” by Ahamad et al.

Page 25: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

1978“Time, Clocks, and the Ordering of Events

in a Distributed System” by Leslie Lamport

1994“Causal Memory” by Ahamad et al.

2011-12

Page 26: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

2011-12

Page 27: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

2011-12

Page 28: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

2011-12

IEEE CAP

There aremany hardtrade-offs,

Page 29: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

2011-12

IEEE CAP SOSP: COPS

There aremany hardtrade-offs,

butcausalconsistencycan workwell

Page 30: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

2011-12

IEEE CAP SOSP: COPS Texas: CAC

There aremany hardtrade-offs,

butcausalconsistencycan workwell

and it’sthe bestyou cando*!

Page 31: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 32: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s okay!”

Page 33: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s okay!”

Page 34: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s okay!”

Page 35: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s okay!”

Page 36: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s okay!”

Page 37: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Sally’s okay!”

Page 38: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

“Sally’s okay!”

Page 39: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

“Sally’s okay!”

Page 40: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

“Sally’s okay!”

Page 41: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

“Sally’s okay!”

Page 42: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 43: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 44: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 45: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Deliver writesin the “right”order

Page 46: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Deliver writesin the “right”order

“Great news!”

“Sally’s okay!”

“Sally’s in a coma!”

Page 47: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Causal Consistencyreads obey partial ordercalled “happens-before”

Page 48: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 49: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 50: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 51: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 52: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 53: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 54: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 55: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 56: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 57: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Write value

Page 58: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Write valueHappens-beforemetadata

Page 59: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Write valueHappens-beforemetadata

Page 60: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Happens-beforemetadata

Page 61: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Happens-before metadata

Page 62: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

per-DC vector clocksO(datacenters)

Happens-before metadata

Page 63: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

per-DC vector clocksO(datacenters)

Happens-before metadata

LESS PARALLELISM

Page 64: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

per-DC vector clocksO(datacenters)

per-key vector clock(dependency set)

O(keys)

Happens-before metadata

LESS PARALLELISM

Page 65: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

per-DC vector clocksO(datacenters)

per-key vector clock(dependency set)

O(keys)

Happens-before metadata

MORE PARALLELISM

LESS PARALLELISM

Page 66: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

per-DC vector clocksO(datacenters)

per-server vector clocksO(servers)

per-key vector clock(dependency set)

O(keys)

Happens-before metadata

MORE PARALLELISM

LESS PARALLELISM

Page 67: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

per-DC vector clocksO(datacenters)

per-server vector clocksO(servers)

per-key vector clock(dependency set)

O(keys)

Happens-before metadata

MORE PARALLELISM

LESS PARALLELISM

Page 68: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 69: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 70: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 71: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Have we seen alldependencies?

Page 72: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Have we seen alldependencies?

Page 73: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Have we seen alldependencies?

Y

Page 74: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Have we seen alldependencies?

Page 75: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Have we seen alldependencies?

Y

Page 76: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Have we seen alldependencies?

Yes: apply write

Page 77: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Have we seen alldependencies?

Yes: apply write

Page 78: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Have we seen alldependencies?

No: waitYes: apply write

Page 79: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Sounds great, right?

Page 80: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

CAUSALITY: TL;DRMETADATA AND MODERN SERVICESTHE SITE SCALABILITY WALLSCALING WITH EXPLICIT CAUSALITY

Page 81: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Causal Consistencyreads obey partial ordercalled “happens-before”

Page 82: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Causal Consistency

traditional happens-before:potential causality

reads obey partial ordercalled “happens-before”

Page 83: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

If you wish to make an apple pie from scratch,you must first inventthe universe.

-Carl Sagan

Page 84: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 85: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

Page 86: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

“Sally’s okay!”

Page 87: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

“Sally’s okay!”

“Great picture!”

“Rad party!” “Lol!”

“Can’t waitfor SOCC!”

“Want to go skiing?”

Page 88: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

“Sally’s okay!”

“Great picture!”

“Rad party!” “Lol!”

“Can’t waitfor SOCC!”

“Want to go skiing?”

“I hope my paper gets in.”

“Youwho?”

“I love Tahoe!”

“Coming tonight?

Page 89: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

“Sally’s okay!”

“Great picture!”

“Rad party!” “Lol!”

“Can’t waitfor SOCC!”

“Want to go skiing?”

“Snow rocks!”

“I hear the PC is great!”

“You.”“Hello,

“I hope my paper gets in.”

“Youwho?”

“I love Tahoe!”

“Coming tonight?

Page 90: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

“Sally’s okay!”

“Great picture!”

“Rad party!” “Lol!”

“Can’t waitfor SOCC!”

“Want to go skiing?”

“Snow rocks!”

“I hear the PC is great!”

“You.”“Hello,

“Who’s there?”

“Are you submitting?”

“Have you met Larry?”

“Great food here”

“I hope my paper gets in.”

“Youwho?”

“I love Tahoe!”

“Coming tonight?

Page 91: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

“Sally’s okay!”

“Great picture!”

“Rad party!” “Lol!”

“Can’t waitfor SOCC!”

“Want to go skiing?”

“Snow rocks!”

“I hear the PC is great!”

“You.”“Hello,

“Who’s there?”

“Are you submitting?”

“Have you met Larry?”

“Great food here”

“Knock, knock.”

“I hope my paper gets in.”

“Youwho?”

“I love Tahoe!”

“Coming tonight?

Page 92: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

“Great news!”

“Sally’s okay!”

“Great picture!”

“Rad party!” “Lol!”

“Can’t waitfor SOCC!”

“Want to go skiing?”

“Snow rocks!”

“I hear the PC is great!”

“You.”“Hello,

“Who’s there?”

“Are you submitting?”

“Have you met Larry?”

“Great food here”

“Knock, knock.”

“I hope my paper gets in.”

“Youwho?”

“I love Tahoe!”

“Coming tonight?

Page 93: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Twitter.com20 Tweetsat login

20 moreauto-scroll

600+ per min

Page 94: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Twitter.comquicklyapproachesupper bound

Page 95: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

rec

ap

Page 96: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

potential dangerPotential causality graphs are huge,limiting local apply rates and throughput

rec

ap

Page 97: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

CAUSALITY: TL;DRMETADATA AND MODERN SERVICESTHE SITE SCALABILITY WALLSCALING WITH EXPLICIT CAUSALITY

Page 98: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 99: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 100: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 101: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 102: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 103: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!

Page 104: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!Unstable queue!

Page 105: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!Unstable queue!

Sustained throughputlimited to slowest DC

Page 106: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!Unstable queue!

Sustained throughputlimited to slowest DC

Page 107: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!Sustained throughputlimited to slowest DC

Page 108: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!

Adding DCs doesn’t helpslowest site

Sustained throughputlimited to slowest DC

Page 109: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!

During partitions/failures,sustainable throughput iszero writes/szero

Sustained throughputlimited to slowest DC

Page 110: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!During partitions/failures,sustainable throughput iszero writes/szero

Page 111: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!During partitions/failures,sustainable throughput iszero writes/szero

Page 112: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!During partitions/failures,sustainable throughput iszero writes/szero

Metadata garbage collectionstallsstalls

Page 113: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!During partitions/failures,sustainable throughput iszero writes/szero

Metadata garbage collectionstallsstalls

Page 114: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!DANGER!During partitions/failures,sustainable throughput iszero writes/szero

Metadata garbage collectionstallsstalls

Page 115: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

rec

ap

Page 116: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

rec

ap

potential dangerWrite throughput limited to slowest DCViolation ⇒ arbitrarily high visibility latencyAdding DCs does not increase throughput

Page 117: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Potential dangers spell trouble for causality

bad news

Page 118: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Potential dangers spell trouble for causality

to it?Are live without wedestined

bad news

Page 119: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Potential dangers spell trouble for causality

to it?Are live withoutwe destined

bad news

Page 120: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

CAUSALITY: TL;DRMETADATA AND MODERN SERVICESTHE SITE SCALABILITY WALLSCALING WITH EXPLICIT CAUSALITY

Page 121: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

ObservationWhy track dependencies that don’t matter?

Page 122: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

ObservationWhy track dependencies that don’t matter?

Page 123: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

ObservationWhy track dependencies that don’t matter?

Need to know application semantics

Page 124: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

ObservationWhy track dependencies that don’t matter?

Need to know application semantics

Page 125: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Explicit Causalityapp-defined “happens-before”

transitivity enforced

subset of potential causality

Page 126: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Explicit Causalityapp-defined “happens-before”

transitivity enforced

subset of potential causality

not a new idea(e.g., Cheriton and Skeen SOSP 1993,

Ladin et al. PODC 1990)

but...

Page 127: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Explicit Matters

Page 128: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Explicit MattersTwitter28% of Tweets in conversations69% of convos are depth twoaverage depth is 10.7

[Ye and Wu SocInfo 2010, Ritter et al. HLT 2010]

Page 129: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Explicit MattersTwitter28% of Tweets in conversations69% of convos are depth twoaverage depth is 10.7

[Ye and Wu SocInfo 2010, Ritter et al. HLT 2010]

reply-to degree and depth are limited

Page 130: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Explicit MattersTwitter28% of Tweets in conversations69% of convos are depth twoaverage depth is 10.7

[Ye and Wu SocInfo 2010, Ritter et al. HLT 2010]

reply-to degree and depth are limited

109 smaller graph for a year of Tweets

Page 131: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Explicit APIput(key, value)

Page 132: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

put_after(key, value, deps)

Explicit API

Page 133: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

put_after(key, value, deps)

Explicit API

Page 134: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

put_after(key, value, deps)

Explicit API

(possibly empty) set ofreferences to other writes

Page 135: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

put_after(key, value, deps)

Explicit API

track what matters

(possibly empty) set ofreferences to other writes

Page 136: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

put_after(key, value, deps)

Explicit API

track what mattersfrequently in data model already

(possibly empty) set ofreferences to other writes

Page 137: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

put_after(key, value, deps)

Explicit API

track what mattersfrequently in data model alreadycan simulate fencing

(possibly empty) set ofreferences to other writes

Page 138: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

put_after(key, value, deps)

Explicit API

track what mattersfrequently in data model alreadycan simulate fencing

(possibly empty) set ofreferences to other writes

won’t track non-explicit references

Page 139: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

Extra Note:

paper for more details

Page 140: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

can treat foreign key references in relational data model as explicit dependencies automatically!

can use schema to describe explicit deps...

Extra Note:

paper for more details

Page 141: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

NATURAL EXTENSIONNOT ROCKET SCIENCE

Page 142: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

NATURAL EXTENSIONNOT ROCKET SCIENCE

http://twitter.com/rbranson/status/256795094387142657

Page 143: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 144: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

potentialcausality

Page 145: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 146: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

A WORLD OFPHYSICAL

OPERATIONSMESSAGESREGISTERS

READSWRITES

MODEST SCALE

Page 147: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 148: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 149: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

A WORLD OF HUGE SCALE

MASSIVEINTERACTIVITYPLANET-WIDE

NETWORKSREAL-WORLD

INTERFACESUBICOMPBIG DATA

Page 150: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012
Page 151: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

potential

dangers

Page 152: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

potential

dangers

huge causality graphs

Page 153: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

potential

dangers

huge causality graphs

throughput scalability limited

Page 154: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

potential

dangers

huge causality graphs

throughput scalability limited

explicitcausalitysemantic context to the rescueconsider modern appshelps with #1, indirectly with #2

Page 155: The Potential Dangers of Causal Consistency and an Explicit Solution - SOCC 2012

[email protected]://bailis.org/

http://bailis.org/papers/explicit-socc2012.pdf

Peter Bailis@pbailis