Fork me on GitHub
#duct
<
2018-10-26
>
ccann21:10:29

I’m considering Duct for an upcoming project and I’m wondering if there are any performance concerns I should be aware of. I haven’t seen any comparisons with other frameworks. Moreover, I haven’t decided on a routing library yet (open to suggestions), which I’m sure is the biggest consideration here. The project isn’t particularly performance sensitive, but just checking.

weavejester23:10:50

The only performance impact Duct should have is on startup, and that should be fairly minimal compared to the time spend loading all required Clojure files.

🙂 1
lukas.rychtecky07:10:28

I’ve created a Duct module for Bidi https://github.com/druids/duct.module.bidi. As you can see it’s easy to create it for any other routing library.

👍 1
dadair22:10:37

You can use Duct regardless of which routing library you choose (default uses compojure or ataraxy); I personally use it with Pedestal and it’s routing libraries. So there’s no “lock-in” that you can’t get around if you later have metrics showing that routing is your bottleneck.

ccann15:10:29

yes thanks, I was more asking if there were any performance concerns with the framework itself, and it looks like there aren’t since that falls mostly to the choice of routing library

dadair22:10:02

Integrant is a library for connecting arbitrary system components together; Duct adds some conveniences around Integrant, and provides various modules for quickly adding components to the system; neither dictate what components you must use.