AWS Community Day CPH - Three problems of Terraform
Towards Conditions for Activation of Services in the Web of Things
1. KIT – University of the State of Baden-Wuerttemberg and
National Research Center of the Helmholtz Association www.kit.edu
Technology for
Pervasive Computing
Pervasive Computing Systems
Conditions for Activation of Services in the Web of Things
4th Web of Things Workshop – 09.09.2013, Zurich, Switzerland
Alex Neumann, Daniel Hassler, Yong Ding, Till Riedel, Michael Beigl
Pervasive Computing Systems, Institute for Telematics, Karlsruhe Institute of Technology
2. Technology for
Pervasive Computing
2 11.09.2013 Alex Neumann
Apps/Services in the Web of Things
Many devices
Even more apps/services (for people and devices)
Constraint ressources on each of the devices
Deployment and activation depends on complex
interactions and dependencies
3. Technology for
Pervasive Computing
3 11.09.2013 Alex Neumann
Service Provisioning (1)
Deployment hard
where to deploy?
1. Manually
2. Automated: “any app everywhere”
3. Automated: „functionality at the right location at the
right point in time“
4. Technology for
Pervasive Computing
4 11.09.2013 Alex Neumann
Service Provisioning (2)
Activation hard
when to activate?
1. Manually
2. Automated: “apps immediately on”
3. Automated: „functionality at the right location at the
right point in time“
5. Technology for
Pervasive Computing
5 11.09.2013 Alex Neumann
Our Software Platform’s Extensions
AppStore and RuleEngine
AppStore
node.js, restify
RuleEngine
JSONiq
6. Technology for
Pervasive Computing
6 11.09.2013 Alex Neumann
The Software Platform
node.js-based systems
Rasperry Pi, Odys Xelio
Management
DiscoveryDeployment
Linux
node.js
App
App
App
restify
7. Technology for
Pervasive Computing
7 11.09.2013 Alex Neumann
The Development Platform
Web-based development
Workstation
WebBrowser
Cloud9 IDE
Deployment BackEnd
node.js
Server
8. Technology for
Pervasive Computing
8 11.09.2013 Alex Neumann
Example
Led-flasher app
node.js package.json
Rule: „flash if the beacon was just around“
var lf = require("led-flasher");
lf.keep_flashing(1000, 1000);
{
"name": "ledApp",
"version": "0.0.0",
"main": "ledApp.js",
...
"rule" : "(-> 1m irBeacon == true)"
}
9. Technology for
Pervasive Computing
9 11.09.2013 Alex Neumann
A Framework for Activation Conditions
Developed tool for deployment and activation
Specify locations and dependencies to programs as
activation rules
Activation Conditions continously evaluate
atomic information streams from other devices (via REST)
aggregated information streams from the cloud (via REST)
10. Technology for
Pervasive Computing
10 11.09.2013 Alex Neumann
Software Lifecycle in the WoT
Components are ...
Deployed and activated on target systems
Stopped and removed from target systems
Updated on target systems:
Deploy A
Stop B and activate A simultaneously
Remove B
11. Technology for
Pervasive Computing
11 11.09.2013 Alex Neumann
Try it Out Yourself
Github:
http://github.com/teco-kit/DeployAndActivate
Features:
Manual node.js deployment from c9 incl. dependencies
Automatic deployment rules for ad-hoc networks
Activation of components based on context
Cloud9 debugging integration (soon)
13. Technology for
Pervasive Computing
13 11.09.2013 Alex Neumann
End.
Thanks for your attention.
Watterson (2005), vol. 3, p. 481. Comic originally published 1995-12-31.