-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
313 lines (258 loc) · 10.1 KB
/
index.html
File metadata and controls
313 lines (258 loc) · 10.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CRDTs</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/sky.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section data-background="img/blackhole.gif">
<h1 style='color: #a9a9a9'>CRDT<small>s</small></h1>
<h4 style='color: #a9a9a9'>Convergent States</h4>
</section>
<section>
<h1>CRDT</h1>
<h3>Conflict-free<br>Replicate<br>Data<br>Type</h3>
</section>
<section>
<img src="img/warning.png" style="height: 200px;" >
<h3>Disclaimer:</h3>
<br>
<h2>no experience !</h2>
<br>
<blockquote>
<p>rigor in progress</p>
</blockquote>
</section>
<section>
<h3>Context</h3>
<br>
<h2>Dist Sys stuff</h2>
</section>
<section>
<h1>CAP</h1>
<h5></h5>
<p>
<img src="img/ca.png">
</p>
</section>
<section>
<h2>
Full Availability
</h2>
<h1>+</h1>
<h2>
Best Available Consistency
</h2>
</section>
<section>
<h3>
P + A + Best possible C
</h3>
</section>
<section>
<h3>
Mathematical Proof !
</h3>
</section>
<section data-background="img/burlaos.gif">
<h3 style="color: #a9a9a9">
cómo se te queda el cuerpo?
</h3>
</section>
<section>
<h2>Strong Eventual Consistency</h2>
<br>
<h5>same <i>unordered</i> updates >>> same state</h5>
</section>
<section>
<h2>Bonus</h2>
<br>
<h5>diff & dup updates >>> same state on convergency</h5>
<br>
<h5>no merge coordination *</h5>
</section>
<section>
<h2>Conflict-free ?</h2>
<h3>Avoid Consensus</h3>
<h3><p class="fragment fade-in"><img src='img/glasses.png' width="50%"></p></h3>
<ul>
<li>No Leaders</li>
<li>No Conflict</li>
<li>No Concurrency control</li>
<li>No Latency</li>
</ul>
</section>
<section>
<h2>On partition</h2>
<h4>Writes</h4>
remain available on all nodes
<br>
<br>
<h4>Reads</h4>
best partial state available
</section>
<section>
<h2>Data Type ?</h2>
<p>
Algebraic Structure with some constraints
</p>
<br>
<br>
<h4 class="fragment fade-in">Algebraic struct?</h4>
<p class="fragment fade-in">
Set with arithmetic properties
</p>
</section>
<section>
<h3>Why Algebraic Constraints?</h3>
<br>
<h4>Mathematical properties guaranteed</h4>
<br>
<h4>Great boundary for:</h4>
<p>non determinism</p>
<p>mutable state</p>
<p>latency</p>
</section>
<section data-background="img/what.gif">
<h2 style="color: #fff">Mutability boundary ?</h2>
</section>
<section>
<h3>Bounded Mutability Structs Scale</h3>
<br>
<ul>
<li>Monads</li>
<li>Spark RDD</li>
<li>Riak Data Types</li>
<li>Aeron UDP firehose</li>
</ul>
</section>
<section>
<h2>Constraints</h2>
<h4>Monotonic</h4>
<p>
No rollback
</p>
<br>
<h4>Merge func</h4>
<p><strong >Associative</strong> a·(b·c) = (a·b)·c</p>
<p><strong>Commutative</strong> a·b = b·a</p>
<p><strong>Idempotent *</strong> a·a = a</p>
</section>
<section data-background="img/confused.gif">
<h2 style="color: #ccc">yes ... limited use cases</h2>
</section>
<section>
<h2>Common use cases</h2>
<p><strong>What</strong> Counters, rankings, registers, sets, graphs</p>
<p><small>* composable (maps...)</small></p>
<p><strong>When</strong> Performance, scale, intermitent connections</p>
</section>
<section>
<h2>CRDT types</h2>
<h3>State based</h3>
<h3>Operation based</h3>
</section>
<section>
<h3>State based</h3>
<p>idempotent</p>
<p>local update & merge</p>
<img src="img/state-lattice.gif" style="height: 300px">
<br>
<small>practical in small data</small>
</section>
<section>
<h2>Operation based</h2>
<p>non idempotent</p>
<p>requires delivery once</p>
<p>=/</p>
</section>
<section>
<h2>Examples</h2>
<p>several approaches</p>
<p>libs: no detail knowledge required!</p>
</section>
<section>
<h2>Detail: counter</h2>
<p>Built on: Sum & Max</p>
</section>
<section>
<h2>Detail: decreasable counter</h2>
<p>Built on: Sum & VVectors</p>
</section>
<section>
<h2>Detail: event set</h2>
<p>Built on: Union & VClocks & LWW</p>
</section>
<!--
<section data-background="img/dance.gif">
<h2 class="fragment current-visible" data-fragment-index="1">CAP ruling</h2>
<h2 class="fragment current-visible" data-fragment-index="2">get da f*ck out</h2>
<h1 class="fragment current-visible" data-fragment-index="3">i'm a CRDT!</h1>
</section>
-->
<section data-background="img/blackhole.gif">
<h1 style='color: #a9a9a9'>the end ?</h1>
</section>
<section>
<h2>Further</h2>
<h3>@cmeik</h3>
<p>Intro resources<br><i>https://gist.github.com/SeanTAllen/4c9e75de187d20f6c63e</i></p>
<p>Riak Data Types<br><i>http://docs.basho.com/riak/latest/dev/using/data-types/</i></p>
<p>A Language for Distributed, Eventually Consistent Computations http://lasp-lang.org/</p>
</section>
<section data-background="img/smoke.gif">
<h2>Much further</h2>
<small>non crdt, but also consistency through modelling</small>
<h3>@palvaro</h3>
<p>Peter Alvaro et al. http://people.ucsc.edu/~palvaro/</p>
<p>Youtube: "I See What You Mean"<br><i>Temporal semantics for Distributed Systems</i></p>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>