juxt

dominicm 2019-01-11T06:29:21.034400Z

I don't think any of us have much experience. One benefit of Aleph is that the async in the client is the same as the server.

WhoNeedszZz 2019-01-11T06:32:05.035200Z

Either library would be fine async-wise as it's using the latest Java 11 http client

dominicm 2019-01-11T06:55:06.037500Z

I mean that Aleph client returns a manifold deferred, which Aleph server knows how to handle properly. I don't know what the Java 11 client returns, it is probably something manifold can handle though. In other words, I doubt there is much if any difference.

stijn 2019-01-11T13:17:48.038100Z

in terms of dependencies, using aleph client doesn't require anything more than yada already includes.

stijn 2019-01-11T13:18:50.038800Z

in terms of 'state', there is a default connection pool for the requests and you can specify your own with aleph.http/connection-pool

kwladyka 2019-01-11T18:07:32.040200Z

@whoneedszzz I did today simple functions to reload server during developing

(ns user
  (:require [integrant.core :as ig]
            [clojure.tools.namespace.repl :as repl]
            [auth.core]))

(defn reset []
  (alter-var-root #'auth.core/system (fn [old]
                                       (ig/halt! old)
                                       (ig/init auth.core/config))))

(defn reload []
  (ig/halt! auth.core/system)
  (repl/refresh-all))
Maybe it ca solve this issue for you.

kwladyka 2019-01-11T18:07:58.040700Z

Oh and I use integrant to start / stop the yada

kwladyka 2019-01-11T18:09:24.041200Z

https://clojurians.slack.com/archives/C0CFGN25D/p1547141932030600 Oh, I guess nobody will answer for my question on #yada then 😱

WhoNeedszZz 2019-01-11T20:04:23.041900Z

I'm in the boat of not messing with lifecycle stuff. That's not what we were talking about anyway

WhoNeedszZz 2019-01-11T20:14:31.043400Z

@kwladyka Your issue is using Integrant incorrectly with it. To reload the server you simply do ((:close svr)) and reload the namespace. What you're doing is more complicated than needed

WhoNeedszZz 2019-01-11T20:15:09.043900Z

Since the server is defined in a def it gets restarted when the namespace refreshes

WhoNeedszZz 2019-01-11T20:16:24.044800Z

I would recommend not using Integrant as it adds unnecessary complexity to something that is already trivial to use