onyx

FYI: alternative Onyx :onyx: chat is at <https://gitter.im/onyx-platform/onyx> ; log can be found at <https://clojurians-log.clojureverse.org/onyx/index.html>
2018-02-19T19:33:08.000337Z

Hi!

2018-02-19T19:33:36.000430Z

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

2018-02-19T19:34:24.000133Z

i.e:considering two (or n) outputs

2018-02-19T19:34:41.000210Z

feed the last value by key to a subsequent processing step

2018-02-19T19:36:06.000312Z

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

lucasbradstreet 2018-02-19T19:59:12.000200Z

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

2018-02-19T20:06:18.000378Z

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

lucasbradstreet 2018-02-19T20:07:33.000158Z

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.

2018-02-19T20:08:45.000091Z

ack, thanks