architect-handbook

Software Architect Handbook

View on GitHub

MVC Architecture Analysis

Not Clean

how mvc goes wrong

User make a requests, Controllers are responsible for processing the request, url query params, etc, and then invoke and orchestate Business Model objects. Then, controller delegates control to View, which queries resulting data from Business Model objects, and returns with a proper response to the user.

The main problem of MVC ‘web architecture’ is the lack of boundaries.

Controller-like / View-like functions end up in business objects, and easily gets closer to a big-ball-of-mud architecture without strict discipline.

Our Model ends up knowing about our infrastructure and low-level modules, thus, depending on them.

Clean Architecture Proposal: Model View Presenter

clean