Liquid Stream Processing Across Web Browsers and Web Servers
-
Upload
masiar-babazadeh -
Category
Science
-
view
312 -
download
2
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
1
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
26Thank you.
Liquid Stream ProcessingAcross Web Browsersand Web ServersMasiar Babazadeh@masiarbAndrea Gallidabino@agallidabinoCesare [email protected]@usi.ch