Search code examples
asp.net-mvcasp.net-mvc-4model-view-controllercontroller

Does lots of controllers slows the performance? MVC


I want to ask a simple question about MVC controllers. I have googled a lot about controllers for "different controllers for each basic table", it cleared a lot of things but i have one question that i couldn't find answer for.

My question is that if i create controller for each basic table, lets say i have 10 basic tables that would create 10 controllers. So does lots of controller slows the application performance?

- In case, when going from view to controller.

- In case, when going from controller to another controller.

I am new so kindly be calm :)


Solution

  • Usually, one request is processed by one controller. And if it (cotroller) is small and have a few dependencies - it's quick. When you have one huge controller with many dependencies of other classes that have their own dependencies and so on... it could be a problem.