Note that there are some explanatory texts on larger screens.

plurals
  1. POHow should I decide the quotas for the Tridion core service binding?
    text
    copied!<p>I am connecting to the Tridion core service using a System.ServiceModel.WsHttpBinding. The service will only be used by authenticated users, and probably only by code which I control. I have to choose values for the following</p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.wshttpbindingbase.maxbufferpoolsize.aspx">MaxBufferPoolSize</a> (default 524,288 bytes)</li> <li><a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.wshttpbindingbase.maxreceivedmessagesize.aspx">MaxReceivedMessageSize</a> (default 65,536 bytes)</li> <li>ReaderQuotas.<a href="http://msdn.microsoft.com/en-us/library/system.xml.xmldictionaryreaderquotas.maxarraylength.aspx">MaxArrayLength</a> (default 16384 bytes)</li> <li>ReaderQuotas.<a href="http://msdn.microsoft.com/en-us/library/system.xml.xmldictionaryreaderquotas.maxbytesperread.aspx">MaxBytesPerRead</a> (default 4096 bytes)</li> <li>ReaderQuotas.<a href="http://msdn.microsoft.com/en-us/library/system.xml.xmldictionaryreaderquotas.maxnametablecharcount.aspx">MaxNameTableCharCount</a> (default 16384 bytes)</li> <li>ReaderQuotas.<a href="http://msdn.microsoft.com/en-us/library/system.xml.xmldictionaryreaderquotas.maxstringcontentlength.aspx">MaxStringContentLength</a> (default 8192 bytes)</li> </ul> <p>The code examples I have seen for using the core service invariably set at least some of these to values larger than the defaults, for example 4Mb. Is this because of known problems when other values, such as the defaults, are used? </p> <p>MaxBufferPoolSize is there to allow you to prevent excessive garbage collections. Is this simply a matter of monitoring GCs and tuning based on that? </p> <p>MaxReceivedMessageSize, MaxArrayLength and MaxBytesPerRead are there to defend against Dos attacks, so in my scenario, perhaps I can improve throughput by increasing these. Would a really large number help?</p> <p>MaxNameTableCharCount seems to be there to prevent uncontrolled growth of something you might not want to grow uncontrolledly, so perhaps leaving the default would be a good thing.</p> <p>The documentation on MaxStringContentLength doesn't specify what happens if you exceed the quota. Presumably ReadContentAsString will fail in some way, so perhaps this value should be large. </p> <p>So - should I leave these values at their defaults? Will that cause me problems? Should I increase them to large values? Will that help with throughput etc., or is it more likely to cause other problems? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload