(Web Application Design track) "Liquid Stream Processing across Web Browsers and Web Servers" -...

26
Liquid Stream Processing Across Web Browsers and Web Servers Masiar Babazadeh @masiarb Andrea Gallidabino @agallidabino Cesare Pautasso @pautasso University of Lugano Switzerland [email protected] 1

Transcript of (Web Application Design track) "Liquid Stream Processing across Web Browsers and Web Servers" -...

Liquid Stream Processing!Across Web Browsers!and Web ServersMasiar Babazadeh!@masiarbAndrea Gallidabino!@agallidabinoCesare Pautasso!@pautasso

University of Lugano Switzerland

[email protected]

1

Web Liquid Streams2

WebRTC

3

var k = require('wls.js');!setInterval(function(){! getTemperature(!! ! ! function(temp, sensor_id){! k.send({! "temperature" : temp,! "id" : sensor_id,!! ! ! ! "ts" : new Date().getTime(),! });! ! ! }!! );!}, 1000);

4

{! topology : {! id : “HAS_topology”,! operators : [! {! id : “producer”,! script : “pi_prod.js”,!! ! ! ! ! constraints : [“temperature”],! },! …!! ! ! ! ],!! ! ! ! bindings : [!! ! ! ! ! {!! ! ! ! ! ! from : “producer”,!! ! ! ! ! ! to : [“filter”, “web_consumer_1”]!! ! ! ! ! ! type : “broadcast”!! ! ! ! ! },!! ! ! ! ! …!! ! ! ! ]!! ! }!}!

5

6

C

C

P

C

F

7

8

Filter Peers

Compute the ranking

F

CP

F C

9

F C

P

10

11

F C

P

C

F

Operator Elasticity

12

13

F

Fault Tolerance

FXF

14

C

C

P

C

15

P F C

16

17

P F C

F

18

1

19

Every 10k msgs

Every 5k msgs

1

Disconnection

20

2

21

2

22

2

23

2424

25

WebRTC

26Thank you.

Liquid Stream Processing!Across Web Browsers!and Web ServersMasiar Babazadeh!@masiarbAndrea Gallidabino!@agallidabinoCesare [email protected]@usi.ch