About Abstraction Structure

Overview I was pondering about architecture and realized that my understanding of abstraction was somewhat vague. I couldn’t picture it clearly in my mind. Then, one day, I had to answer why service interfaces exist in Spring’s controller-service-model structure. Why should we use service interfaces in Spring? Or, why shouldn’t we? Hmm… Of course, you can write interfaces to give polymorphism so that the controller doesn’t depend on a specific service, but usually, this leads to a giant service class, and abstraction becomes meaningless for services with too many responsibilities. That left me feeling uneasy. ...

March 7, 2021