I have an ASP.Net 4 website, not MVC, which is being authenticated using forms, and I need to equip its API. After googlage it seems the RESTful API will give the most accessibility.
I already have an asynchronous custom HTTP handler code for some Comet functions. I would like to use asynchronous handlers in the API to ensure that the IIS downstream is not tied, but to keep the performance optimal .
I would like to try to stay true and use the URI to access and modify resources. Are there design guides for this kind of thing, since it seems like a task that many developers face?
I am not sure whether to use one handler for the API that runs for all HTTP verbs or one handler for each type of resource, or several handlers derived from a common asynchronous handler. Any recommendations would be appreciated.
source share