#monolit — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #monolit, aggregated by home.social.
-
Imagine we have a #java #modulith / #Monolit, am I correct that the following illustration is a good pattern?
1. a Controller only access its respective Service
2. a Service can access its respective Repository
3. a Service can access other Services
4. a Controller and Repository are not allowed to access other Controller or RepositoriesThis ensures that there is only a Service layer where the business logic is stored.
Are there any downsides I miss?