Fork me on GitHub
#onyx
<
2018-02-19
>
pyr19:02:36

I'm trying to find out what the best way to do projections is in Onyx

pyr19:02:24

i.e:considering two (or n) outputs

pyr19:02:41

feed the last value by key to a subsequent processing step

pyr19:02:06

(i.e, something like: http://riemann.io/api/riemann.streams.html#var-project in the riemann world)

lucasbradstreet19:02:12

The general approach you would use is the windowing functionality to hold your state, and then trigger/emit to a downstream task

pyr20:02:18

ok, so around section 6 of the learn-onyx challenges then

lucasbradstreet20:02:33

That’d be a good place to start. We need to update learn-onyx to cover :trigger/emit http://www.onyxplatform.org/docs/cheat-sheet/latest/#trigger-entry/:trigger/emit though. Currently it only demonstrates :trigger/sync which fires a function to cause side effects.

pyr20:02:45

ack, thanks