Slicing Controllers

Learn the concept of "slicing controllers" and why it is better to create more controllers than a few.

In most web frameworks, like Spring MVCModel View Controller in the Java world, we create controller classes that perform the responsibilities we have discussed previously. So, do we build a single controller that answers all requests directed at our application? We don’t have to. A web adapter may certainly consist of more than one class.

Get hands-on with 1400+ tech skills courses.