You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to move my project to use Spring Modulith but currently facing some issues with cycle dependencies:
What is the common idea when module needs to get data from the other module. Let's say there is users module and it needs to access its items from items module. Now in my example everything is sort of connected - each modules talks to each other via the provided service, but here the cyclic dependency occurs. So what are the best practices to solve this issue? Any decent examples and thorough explanation?
What about when I use JPA and user entity is associated with ManyToMany with post entity and post also contain user. Here is cycle dependency as well? This is also indication that modules are connected, but what is the practice to solve this then?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am trying to move my project to use Spring Modulith but currently facing some issues with cycle dependencies:
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions