ddd-by-examples / library

A comprehensive Domain-Driven Design example with problem space strategic analysis and various tactical patterns.
MIT License
5.01k stars 730 forks source link

Dependency cycles between patron and book #23

Closed bslota closed 5 years ago

bslota commented 5 years ago

There are dependency cycles between patron and book packages.

image

Problematic dependencies include: events, PatronId, book types

ghost commented 5 years ago

@bslota Because book has holds by some patron and patron can hold any book. So, this dependency cycle is implicit by requirement, no?

Explain me please if I misunderstood.

ghost commented 5 years ago

Also, this ticket is workings of https://github.com/ddd-by-examples/library/issues/19

bslota commented 5 years ago

Duplicate of #19

@dosdebug you're right. I'm closing the issue. We will move the discussion there.