Liquid Stream Processing Across Web Browsers and Web Servers

59
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 Liquid Stream Processing Across Web Browsers and Web Servers

Liquid Stream ProcessingAcross Web Browsersand 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

6

C

C

P

C

F

7

8

8

Filter Peers

8

Filter Peers

Compute the ranking

F

CP

F

9

F

CP

F

9

F

CP

F C

9

F

CP

F C

9

F

CP

F C

9

F C

P

10

F C

P

10

11

F C

P

11

F C

P

11

F

P

11

F

P

C

11

F

P

C

F

Operator Elasticity

12

F

Operator Elasticity

12

F

Operator Elasticity

12

F

Operator Elasticity

12

F

Operator Elasticity

12

F

Operator Elasticity

12

F

Operator Elasticity

12

13

F

Fault Tolerance

13

F

Fault Tolerance

13

F

Fault Tolerance

13

F

Fault Tolerance

FX

14

C

C

P

C

FX

14

C

C

P

C

14

C

C

P

C

F

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

2424

2424

2424

2424

2424

2424

2424

2424

2424

25

WebRTC

26Thank you.

Liquid Stream ProcessingAcross Web Browsersand Web ServersMasiar Babazadeh@masiarbAndrea Gallidabino@agallidabinoCesare [email protected]@usi.ch