Flask Problem: writing stream processing programs for sensor - - PowerPoint PPT Presentation

flask
SMART_READER_LITE
LIVE PREVIEW

Flask Problem: writing stream processing programs for sensor - - PowerPoint PPT Presentation

Flask Problem: writing stream processing programs for sensor networks (TinyOS / NesC) is hard (to debug, maintain, etc) Solution: provide a high-level language for developers that abstracts away the complexity of communications and


slide-1
SLIDE 1

Flask

  • Problem: writing stream processing programs

for sensor networks (TinyOS / NesC) is hard (to debug, maintain, etc)

  • Solution: provide a high-level language for

developers that abstracts away the complexity

  • f communications and parallelism
slide-2
SLIDE 2

Flask Programming Model

  • Each “operator” performs operations on one
  • r more “streams” using “stream

combinators”

  • Developers can define task graphs for each
  • perator programmatically, using an Ocaml-

like language

  • If necessary, it is possible to define code

blocks in NesC for structures and processes

slide-3
SLIDE 3

Communications

  • IPC: Developer “wires” the streams and

combinators together, and the individual tasks are fired by the posting “wire”

  • Network: uses a communications framework

called “flows”, based on pub / sub

  • Developer simply ties operators together with

flow Ids, Flask takes care of the rest

slide-4
SLIDE 4

Evaluation

  • “Ease of use”... produces shorter code...
  • Implemented seismic event detection and

TinyDB using Flask

  • Overhead: Flows imposes a relatively large
  • verhead on comms, and also on memory
  • Results from running a query seem a little

erratic – however probably not attributable to Flask

slide-5
SLIDE 5

Comments / Questions