This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-08
Channels
- # announcements (20)
- # aws (16)
- # babashka (63)
- # beginners (75)
- # calva (35)
- # cider (2)
- # clj-commons (5)
- # clj-kondo (2)
- # cljs-dev (1)
- # clojure (90)
- # clojure-australia (3)
- # clojure-europe (16)
- # clojure-france (1)
- # clojure-nl (4)
- # clojure-uk (5)
- # clojurescript (7)
- # data-science (2)
- # datahike (1)
- # datomic (39)
- # emacs (31)
- # events (2)
- # figwheel-main (1)
- # fulcro (15)
- # gratitude (8)
- # helix (17)
- # holy-lambda (1)
- # introduce-yourself (1)
- # jobs (3)
- # kaocha (2)
- # liquid (1)
- # malli (1)
- # nrepl (2)
- # other-languages (1)
- # portal (76)
- # react (19)
- # reagent (9)
- # remote-jobs (1)
- # rewrite-clj (9)
- # shadow-cljs (31)
- # tools-deps (5)
- # xtdb (11)
Seems like each time I use Nevermind, it must be blocking the calling thread which is causing something else to spawn new threadsawait-tx
a thread is spawned? Is that correct?
If I listen for the ::xt/indexed-tx
event, then receive a message for a certain transaction id, would that be the same as calling await-tx
on that transaction id?
I'm trying to make sure a transaction can be queried once a request completes without blocking the calling thread...
even if you have a listener, someone is presumably still blocked while waiting for the right event to fire
yea the request will be blocked, but I think the web server (Aleph) should handle that for me without creating a new thread. Where as if I block the calling thread, Aleph ends up spawning a thread for each request again, which I don't want
haven't used, but you could hook the tx listener and manifold deferreds to do what you want I think
yea that's what I'm thinking
x-posting > We will continue our exploration of XTDB and Datalog. We will follow a XTDB tutorial on Nextjournal and do the exercises together. With discussions along the way. https://clojurians.slack.com/archives/C30SDJ58R/p1633645449001000

In case you feel like xt is lacking exposure: https://twitter.com/xtdb_com/status/1446545506784710662