Post on 12-Apr-2017
Liquid Stream ProcessingAcross Web Browsersand Web ServersMasiar Babazadeh@masiarbAndrea Gallidabino@agallidabinoCesare Pautasso@pautasso
University of Lugano Switzerland
name.surname@usi.ch
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