This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-06
Channels
- # bangalore-clj (16)
- # beginners (120)
- # boot (21)
- # cider (24)
- # clara (9)
- # cljs-experience (1)
- # cljsrn (1)
- # clojure (218)
- # clojure-dev (3)
- # clojure-italy (12)
- # clojure-losangeles (4)
- # clojure-norway (2)
- # clojure-russia (2)
- # clojure-spec (19)
- # clojure-uk (178)
- # clojurescript (52)
- # cursive (7)
- # data-science (55)
- # datomic (25)
- # defnpodcast (11)
- # emacs (5)
- # fulcro (27)
- # hoplon (2)
- # leiningen (14)
- # midje (9)
- # off-topic (132)
- # onyx (19)
- # other-languages (23)
- # portkey (2)
- # re-frame (31)
- # reagent (1)
- # ring-swagger (15)
- # shadow-cljs (58)
- # slack-help (13)
- # spacemacs (22)
- # sql (7)
- # test-check (13)
can somebody enlighten me why code here: https://github.com/onyx-platform/onyx-bookkeeper/blob/0.11.x/src/onyx/plugin/bookkeeper.clj#L312 is so much more complex than code here: https://github.com/onyx-platform/onyx-sql/blob/0.11.x/src/onyx/plugin/sql.clj#L165
(I'm still working on updating onyx-http, and finally got back to it, so I'm trying to understand what approach should I use)
@asolovyov one of those is async, the other isnβt
@asolovyov good to hear that onyx-http is getting some love again.
Iβm happy to talk to help get it into shape.
@asolovyov typically you want to free up the onyx process as soon as possible, since plugin a write/read in the plugin means it's blocking everything in the peer lifecycle (including heartbeats, etc). however, as you noticed, this comes at the price of complexity.
so it's better to make onyx-http async, right? I wonder though if it's possible to make it simpler
I'm trying to base this thing on Aleph and one thing that bothers me is that I have no idea how to make timeouts which are async there...
I believe the last version (pre 0.10) was async, yes
aleph would be great.
yeah I guess so, it almost works, even with retries, except for timeout I'm doing Thread/sleep right now and I guess that's suboptimal π
Great. If you want to push up a prelim version for me to quickly review, let me know.
Sure π
Thanks, will be really happy to have the HTTP plugin back into the fold.