This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-27
Channels
- # announcements (11)
- # aws (1)
- # babashka (15)
- # beginners (345)
- # calva (5)
- # chlorine-clover (14)
- # clj-kondo (40)
- # cljfx (30)
- # clojure (174)
- # clojure-australia (6)
- # clojure-europe (64)
- # clojure-france (1)
- # clojure-nl (12)
- # clojure-uk (20)
- # clojurescript (29)
- # conjure (1)
- # core-async (53)
- # cryogen (3)
- # cursive (8)
- # datomic (12)
- # emacs (5)
- # events (4)
- # fulcro (27)
- # graalvm (1)
- # graphql (9)
- # helix (8)
- # keechma (11)
- # london-clojurians (1)
- # malli (12)
- # off-topic (12)
- # pathom (8)
- # portal (1)
- # re-frame (19)
- # reagent (13)
- # reitit (16)
- # ring-swagger (2)
- # sci (38)
- # shadow-cljs (31)
- # spacemacs (3)
- # specter (14)
- # sql (14)
- # tools-deps (31)
- # vim (4)
- # xtdb (9)
Hi. how are reified transactions (https://docs.datomic.com/cloud/transactions/transaction-processing.html#reified-transactions) are performed on Crux? Could find a mention in the docs. Thanks
Hello 🙂 Crux doesn't provide any transaction reification out-of-the-box, although you should be able to recreate exactly what you need in user space, potentially with help from transaction functions, e.g.: https://gist.github.com/refset/a00be06443bc03ccc84a2874af3cdb8a#file-txfns-clj-L1-L8 What kind of things are you hoping to do with reified transactions?
Thanks. Really helpful. I want to capture the user intent that caused the transaction a la cqrs.
If I use kafka for documents and the transaction-log, do I still need persistence for the index store? Specifically I'm asking, can I deploy my application to heroku and use confluent's service to fully use crux?
NVM, the documentation states, that the indices will be rebuilt from the other two stores.
Yes, but beware that this might take some while. So better not depend on it for a lambda, e.g. 🙂
Ah, ok. Heroku restarts once every 24h, that should be fine for a hobby app...
^ all this is correct. I think as long as the per-dyno index size for the app stays healthily below the per-dyno memory limits then this setup should be fine for a hobby app 🙂 However, beware that the bandwidth costs may start racking up if restarts happen too often!
FYI I’ve got a german hoster with a nifty small cloud plan. Virtual host starts at 2.89€/month
