WCF - what is the fastest binding?

后端 未结 2 1440
时光取名叫无心
时光取名叫无心 2021-01-31 19:18

I currently have a WCF service which uses BasicHTTP binding, and is wrapped with a secure router/firewall (PFSense).

I have heard that there is a faster binding than Bas

2条回答
  •  孤城傲影
    2021-01-31 19:37

    If your solution is deployed to an intranet, you can use NetTcpBinding.

    http://msdn.microsoft.com/en-us/library/system.servicemodel.nettcpbinding.aspx

    While perhaps not authoratative, this post covers some benchmarking with these results, which are consistent with my answer and parapura's:

    WSDualHttpBinding: Processed 1602 calls in 10 seconds
    WSHttpBinding: Processed 2531 calls in 10 seconds
    BasicHttpBinding: Processed 17913 calls in 10 seconds
    NetTcpBinding: Processed 39957 calls in 10 seconds
    NetNamedPipeBinding: Processed 48255 calls in 10 seconds
    

提交回复
热议问题