Using Http Pipelining for Rest on IIS
Given a workflow that I support, there is a high chance that the开发者_开发技巧re would be at least a hundred consecutive calls to the same resource done in rapid succession. I started looking into batching calls for Rest and ran into people suggesting Http Pipelining as the solution. My understanding is that the client will be able to make dozens of requests across the same connection, one right after the other, and dealing the responses whenever they get back.
I think this type of solution is more or less what I'm looking for. I'm currently developing an Asp.net MVC with the resources extension to make a Restful website (http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=24471). Also the clients are using the WCF Rest starter kit client module to call Rest.
Here are the pieces of information that I'm looking for:
- Does IIS 7 support Http Pipelining? Do I need to configure anything for it to work?
- Does Asp.net support Http Pipelining?
This should be sufficient to keep me going in the quest for Restful services. Thanks for your help!
HTTP Pipelining is built into the http.sys
kernel mode driver. It is on by default. ASP.NET as the service end-point doesn't need to know about pipelining, all it is concerned about is processing a request and returning a response. Http.sys
takes care of managing pipelining.
精彩评论