This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-26
Channels
- # bangalore-clj (1)
- # beginners (12)
- # boot (48)
- # cider (56)
- # clara (1)
- # cljs-dev (15)
- # clojure (455)
- # clojure-austin (2)
- # clojure-dev (33)
- # clojure-italy (26)
- # clojure-nl (6)
- # clojure-poland (10)
- # clojure-russia (23)
- # clojure-spec (33)
- # clojure-uk (62)
- # clojurescript (37)
- # code-art (2)
- # cursive (12)
- # datomic (48)
- # funcool (1)
- # juxt (16)
- # leiningen (13)
- # off-topic (12)
- # om (23)
- # onyx (16)
- # other-lisps (5)
- # parinfer (2)
- # pedestal (28)
- # re-frame (60)
- # reagent (8)
- # ring (1)
- # ring-swagger (15)
- # spacemacs (5)
- # specter (53)
- # test-check (2)
- # unrepl (8)
- # vim (14)
It used to, but we ditched it after a while because we didn’t want any performance overhead, since we care more about our users than our convenience.
Nope, took it out a few years ago
We don’t, no. Most of the code base is performance sensitive, so we’re handling errors pretty meticulously.
@michaeldrogalis by meticulously you mean let it fail ?
@lxsameer No I mean we’re careful around how we handle every exception, we don’t use a blanket strategy like using Dire everywhere.
@michaeldrogalis Aha, cool. I'm interested to know more on this subject, could you please refer me to a starting point in the source code ?
The code has gotten moderately hard to read over time, between building up a state machine with lifecycles and doing a lot of performance sensitive stuff, but I can point you to where we handle it in a second
@lucasbradstreet thanks man. 🙂
Main loop is here https://github.com/onyx-platform/onyx/blob/0.10.x/src/onyx/peer/task_lifecycle.clj#L456
you can see the handle-exception-fn which calls our pre-comp’d lifecycle/handle-exception code to decide what to do
in here https://github.com/onyx-platform/onyx/blob/0.10.x/src/onyx/peer/task_lifecycle.clj#L131
task-lifecycle used to look more elegant. But it also used to be able to process thousands of segments a second, not millions 😉
@lucasbradstreet thanks man, I'm sure that it's quiet good