Link to home
Start Free TrialLog in
Avatar of zattz
zattz

asked on

WCF Service - basicHttpBinding versus others - performance

Hi all

I have a WCF Service running in IIS that I use to Receive & Send a very basic DataContract class to and from a client. The DataContract class is basically a list of strings.

I am using basicHttpBinding. Is there anything more efficient?

Also, if I wanted to add in compression where would I start, if it's even advisible?

Here is my config

<behaviors>
      <serviceBehaviors>
        <behavior name="MyBehaviour">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
          <dataContractSerializer maxItemsInObjectGraph="2147483647" />
        </behavior>
      </serviceBehaviors>
    </behaviors>    
    
    <services>
      <service name="Manager.Mobile.WebService.MyService" behaviorConfiguration="MyBehaviour">
        <endpoint name="MyServiceEndPoint" address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="MyServiceBinding"
                  contract="Manager.Mobile.WebService.IMyService" />
        <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
      </service>
    </services>
    
    <bindings>
      <basicHttpBinding>
        <binding name="MyServiceBinding"
               receiveTimeout="00:05:00"
               sendTimeout="00:05:00"
               openTimeout="00:05:00"
               closeTimeout="00:05:00"
               transferMode="Streamed"
               bypassProxyOnLocal="false"
               useDefaultWebProxy="true"
               maxBufferSize="2147483647"
               maxReceivedMessageSize="2147483647"
               maxBufferPoolSize="2147483647">
          <readerQuotas maxDepth="2147483647"
                        maxStringContentLength="2147483647"
                        maxArrayLength="2147483647"
                        maxBytesPerRead="2147483647"
                        maxNameTableCharCount="2147483647" />
          <security mode="None" />
        </binding>
      </basicHttpBinding>
    </bindings>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Darren
Darren
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zattz
zattz

ASKER

thx