I have an ASP.Net 4 website, non MVC, that is Forms Authenticated, and I need to equip it with an API. After googlage, it seems RESTful API would give greatest accessibility.
I already have asynchronous custom HTTP Handler code in place, for some Comet functions. I would like to use async handlers in the API, to ensure the IIS threadpool is not tied up, and to keep performance optimal.
I would like to try to stay REST faithful and use the URI to access and change resources. Are there design guides around for this kind of thing, as it seems like a task that many devs would face?
I am unsure as to whether to use one handler for the API that fires for all HTTP verbs, or one handler per resource type, or multiple handlers derived from a generic async handler. Any guidance would be appreciated.