Reputation: 51997
I'm using several page methods that are currently in the code behind file. Basically, I receive a request, run a query, and return some json text; pretty classic stuff. My question is this: if I move the page method into an http handler, will I see any performance or scalability benefit? What about using an asynchronous http handler?
Thanks for your suggestions.
Upvotes: 0
Views: 387
Reputation: 10988
I can't speak to an actual performance difference, but know that an HttpHandler (.ashx) file is very light-weight compared to a Page (.aspx). For simple JSON calls, HttpHandler is my preference.
Upvotes: 1