tags:

views:

72

answers:

2

hi, i use some HTTP Handlers from my Web Forms days forms, to for example Generate Images Thumbnails, Serving CSS, Etc...

i like them, htey are easy to make and offer great abstraction, so can i still use them with optimal performance in MVC or should i use Action Filters ?

thanks in advanced.

+2  A: 

Action Filters add several more layers of abstraction, because they go thru routing and MVC handler. If you are THAT concerned about performance and don't need any MVC features, you should stick to Handlers.

DreamSonic
very good reply man, thanks a lot
And how about a vote? ;)
DreamSonic
damn sorry i missed that you got +1
+1  A: 

If you want perfomance - use HttpHandlers

If you want testability - use ActionFilters

Personally I prefere ActionFilters where it is possible in ASP.NET MVC

eu-ge-ne