This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-16
Channels
- # aleph (2)
- # beginners (68)
- # boot (25)
- # bristol-clojurians (5)
- # cider (10)
- # cljs-dev (60)
- # cljsrn (1)
- # clojure (138)
- # clojure-austin (1)
- # clojure-france (2)
- # clojure-greece (11)
- # clojure-italy (4)
- # clojure-russia (16)
- # clojure-spec (4)
- # clojure-uk (75)
- # clojurescript (26)
- # core-async (28)
- # cursive (25)
- # data-science (4)
- # datomic (16)
- # defnpodcast (2)
- # devops (2)
- # docs (10)
- # duct (11)
- # emacs (1)
- # events (1)
- # figwheel (8)
- # fulcro (61)
- # garden (2)
- # hoplon (6)
- # java (6)
- # jobs-discuss (1)
- # lein-figwheel (14)
- # leiningen (86)
- # luminus (11)
- # off-topic (8)
- # parinfer (9)
- # pedestal (2)
- # re-frame (19)
- # reagent (1)
- # ring (3)
- # ring-swagger (8)
- # shadow-cljs (278)
- # spacemacs (13)
- # sql (5)
- # testing (7)
- # unrepl (8)
- # yada (25)
What is the proper way of responding from an aleph websocket handler using ataraxy? e.g.,
(defmethod ig/init-key ::connect [_ {:keys [db logger]}]
(fn [req]
;; wrap in [::response/X ..]?
(-> (d/let-flow [socket (http/websocket-connection req)]
(s/connect socket socket))
(d/catch (fn [_] non-websocket-request)))))
@dadair It’s just a Ring handler, so the normal rules should apply.
I released module for auto loading migrations from folder, don't need to configure them manually https://github.com/mariusz-jachimowicz-83/duct-migrations-auto-cfg
@mariusz_jachimowicz That looks useful - but it doesn’t have to be a module. You can just write it as a regular key.
e.g. {:duct.migrator/ragtime {:migrations #ig/ref :example.migrations/from-dir}}
The :migrations
key is a vector, so you just need to ensure that the key returns a vector of migrations.
I thought that this ref will try to get string content from this url
@mariusz_jachimowicz The ref is replaced with whatever is returned from init-key
, so if you return a vector of migrations, then you get a vector of migrations.
@weavejester aaa ok I understand now. Indeed. I will check it.
thx for the tip 😄
Now I am thinking about making some modules for microservices architecture. Something similar to Spring Cloud or https://github.com/otto-de/tesla-microservice - allow to specify multiple jetty instances + multiple migrators + multiple dbs (connection pools) + Zookeeper module + ...