We try to do everything as clear and clean as possible in three-level architecture.
But the complexity of our system leaves us confused as to the best way to continue.
If we use many chains of functions passing through the service level, with smaller lists of parameters, this seems clear from the point of view of what is being done, but it seems that many functions are repeated through these methods.
However, if we use fewer methods and have large lists of parameters to change the functionality in the methods, this seems to get out of hand.
Our choice at the moment has more functions, since it is easiest to manage than monolithic functions with a large number of logical flows inside them. This obviously means smaller pieces of more managed code.
It’s just that we hear a lot about SUSHA, so it’s like repeating within methods. But he looks more flexible.
source
share