This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-03
Channels
- # babashka (12)
- # beginners (15)
- # biff (2)
- # calva (17)
- # clj-kondo (19)
- # clj-on-windows (3)
- # clj-otel (1)
- # clojure (3)
- # clojure-europe (5)
- # conjure (2)
- # graalvm (2)
- # helix (5)
- # introduce-yourself (1)
- # nbb (24)
- # off-topic (32)
- # polylith (3)
- # reitit (21)
- # releases (1)
- # reveal (3)
- # scittle (1)
- # squint (56)
- # tools-deps (4)
- # xtdb (6)
Hello! Is there a fundamental reason why https://github.com/metosin/reitit/blob/master/modules/reitit-sieppari/src/reitit/interceptor/sieppari.clj is Clojure-only? I'm trying to find a solution for server-side CLJS routing that supports async execution, and thought that sieppari might be a good choice.
Yep and we’re not developing Sieppari anymore and don’t recommend it for new projects. 🙂 Tommi has this cooking up as replacement https://github.com/metosin/viesti
Thanks! Hmm... Sieppari is the only published async interceptors implementation I have found, do you know of any alternatives?
In fact maybe I don't get viesti, but it doesn't seem to fill the same niche? :thinking_face:
Yeah it has broader scope but Tommi said he has included “lessons learned” from Sieppari in there
If you’re looking for just a lib to does async interceptors I don’t know anything other than Sieppari and Pedestal
Hmm looking at Sieppari code I don’t see a reason why it wouldn’t work in CLJS. Only namespace that’s JVM only is the manifold-one.
would https://github.com/exoscale/interceptor suit your needs ? it supports core async
i'd love to hear the "lessons learned" from sieppari. I used it and didn't encounter any issue as far as i remember
@U055NJ5CC can probably chime in 🙂
AFAIK it was something related to this https://github.com/metosin/sieppari/issues/20#issue-483906498
well my only pain point was that a really long chain can make a really complex flow but that's every interceptor/middleware lib really
oh maybe being agnostic of http ? i was using it for kafka and the field names were a bit annoying
Thanks Ronald, I'll have a look at https://github.com/exoscale/interceptor
That is one good alternative. Interceptor is a nice pattern but I lost faith in the dynamic queue thing. Not much benefits, makes things order of magnitude slower. Malli has embedded interceptors that are really good, no time to push Sieppari forward. Would need a joint agreement, now there are like 5+ libs, all bit different.