Skip to content

Instantly share code, notes, and snippets.

@lbradstreet
Created October 18, 2017 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbradstreet/de3df2532b99c99fe389357ab287e52b to your computer and use it in GitHub Desktop.
Save lbradstreet/de3df2532b99c99fe389357ab287e52b to your computer and use it in GitHub Desktop.
--- service: name: sensor-counts
doc: "A streaming microservice."
operations:
- operation: readFromTopic
params:
topicId: << Fill me in >>
wrapWithMetadata: false
- operation: materializeViews
params:
groupBy:
- sensorId
views:
- name: counter
operation: customView
language: javascript params:
windowType: global
initializeFunction: [./temperature.js, initializeView]
updateFunction: [./temperature.js, updateView]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment