我有一些使用WCF 3.5 + RESTful入門工具包開發的WCF RESTful服務。我遇到了許多同樣的抱怨,它不是非常高效,並且不能很好地處理一連串的請求。我認爲這個原因的一部分是3.5中的RESTful特性更像是一個社區插件。WCF 3.5 vs 4.0 RESTful Services性能
既然WCF 4.0 RESTful服務已經出現一段時間了,我推測有些人已經開發出來並在生產環境中使用它。
我在使用WCF REST服務模板40(CS),看到任何人有任何性能/可伸縮性問題。我還在檢查WCF 3.5和WCF 4.0的RESTful服務之間是否進行了性能/可伸縮性比較。做一個快速的谷歌搜索沒有產生很多結果。
任何反饋將不勝感激。
編輯
每請求,這是我的配置:
<bindings>
<webHttpBinding>
<binding name="TransportWeb">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</webHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="SecureBehavior" name="Service">
<endpoint address="" binding="webHttpBinding" bindingConfiguration="TransportWeb" behaviorConfiguration="REST" contract="IServce"/>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="SecureBehavior">
<serviceMetadata httpGetEnabled="false" httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="REST">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
其中一些「社區」功能是WCF 4中的那些新功能。 – 2011-05-27 21:01:53