r/Clojure • • 10d ago

Implementing Clean Architecture in Clojure

https://en.andros.dev/blog/bebb6f27/implementing-clean-architecture-in-clojure/
30 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/tanrax 9d ago

Thanks for the reply! And for the original post, it's cited in the article.

I agree on the problem, that's exactly why I didn't go with Functional Core, Imperative Shell. In the article the use cases receive the repository as an argument and can fetch data mid-flow, so IO isn't strictly at the edges; the core just doesn't depend on concrete infrastructure.

In my opinion, I see your graph approach as the next level up. Each node could be one of these use cases, with the conductor making the flow explicit and traceable. Maybe, for a small app it'd be overkill.

I'll check out Mycelium.

2

u/yogthos 9d ago

Ah, missed the citation. :) And yeah, I agree the graph approach is overkill for a smaller app where it's easy enough to trace the control flow.