Fork me on GitHub
#onyx
<
2016-03-06
>
ckarlsen17:03:10

Hi! We have an ETL pipeline where we pull from a changelog (ms dynamics webservice) every second or so. When something has changed we fetch the relevant records from another endpoint, sending the records to kafka and save the timestamp. We use Samza today and persists timestamps etc. with the builtin checkpointing/state (rocksdb) features of samza. Any tips on how I can build this with Onyx? Would it be idiomatic to integrate the webservice client as an onyx plugin or would it be sufficient to use lifecycle functions for this? (spin up a "worker thread" during task initialization that will emit onyx segments?). Also, any suggestions for how to persist my "state" (basicly just storing UUIDs with a "last modified date" timestamp) ?

lucasbradstreet17:03:04

Hi @ckarlsen. Yes, it would be idiomatic to either build an input plugin for the webservice client, or continue to send the records to Kafka and use the Kafka input plugin.

lucasbradstreet17:03:57

As for persisting your state, you would want to use the windowing/state management feature http://www.onyxplatform.org/docs/user-guide/latest/windowing.html http://www.onyxplatform.org/docs/user-guide/latest/aggregation-state-management.html, which will maintain your state in a fault tolerant way

lucasbradstreet18:03:02

You’re welcome.

ckarlsen18:03:22

looking forward to play with this. Samza works and the API is simple, but the dev and testing experience is horrible with the java interop and the clumsy shell scripts and .properties files...

lucasbradstreet18:03:09

You could maybe even use onyx-seq, via a lazy-seq that polls the web service, to prototype it out https://github.com/onyx-platform/onyx-seq

lucasbradstreet18:03:38

If the web service isn’t replayable then you probably won’t lose anything by using it

lucasbradstreet18:03:16

I hope you have a good experience with Onyx. One thing we’ve really focused on is making dev and testing a breeze

lucasbradstreet18:03:37

I recommend giving the template a look for some of our best practices https://github.com/onyx-platform/onyx-template

ckarlsen18:03:47

nice. thanks

lucasbradstreet21:03:23

Can anyone offer me a http://lobste.rs invite?

gardnervickers23:03:47

We no longer need install-kafka.sh and install-zookeeper.sh in the kafka plugin, since we run the in-memory versions. Any objections to dropping those?

lucasbradstreet23:03:08

Drop em. I have a feeling that we may need to get them back one day, especially for ZooKeeper (the testing ZK may not be representative), but we can always just grab them from earlier revisions