Giter Club home page Giter Club logo

Comments (3)

bslota avatar bslota commented on July 21, 2024

55835239-effb9e00-5b1b-11e9-870d-6af17b2efab7
Problematic dependencies include: events, PatronId, book types

from library.

bslota avatar bslota commented on July 21, 2024

Answering your question @dosdebug regarding the cycles, it is true that conceptually a patron can hold (among others) a book, and a book can be held by a patron. What event storming sessions has uncovered, though, is that it is the patron that we're interacting with directly in order to place a book on hold, collect it, etc. It means that there is a relation: patron -> book which is unidirectional. In other words, a patron depends on a book, and this dependency should be reflected in the code as well.

Considering it further, having bidirectional dependencies, including PatronEvents, PatronId, BookType, we introduce coupling, loosing orthogonal package structure, components' autonomy, etc.

Does this sound reasonable?

I already started analysis with ArchUnit test (actually, I could put in into some branch to share with you - will do it soon) which shows all cycle-related issues. There are a couple of ways of solving them, and we need to align it with our model to keep arch-code gap minimized.

As soon as I push the branch with mentioned test, we can continue with it.

from library.

 avatar commented on July 21, 2024

@bslota Sure. I got it, so we need to maintain uni-directional communication.

from library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.