front controller , Page controller?

4k views Asked by At

what is the difference between front controller and page controller? which is the best?

2

There are 2 answers

1
Ryan On

I think it's that a front controller architecture has a single entry point for all requests whereas a Page Controller architecture has separate entry points for each request. ASP.NET MVC uses the Front Controller architecture. FubuMVC is a .NET front controller architecture. StackOverflow isn't really the right forum to address which is better.

Here's an over of FubuMVC's front controller pattern.

0
Illuminati On

See this for front-controller pattern and this for page controller pattern. And you can get a better idea of how front-controller is implemented in ASP.NET MVC and it's advantages over page controller from here

These are not two complementary patterns but they both have different implementations. ASP.NET MVC uses front controller pattern where as ASP.NET Web forms are implemented based on the page controller pattern.