title: How to modify the default allowed response size settings for a Web API Application?
body: <p>I have a Web API method that returns a list of Events:</p>
  
  <pre><code>public HttpResponseMessage GetEvents()
  {
  ...
  }
  </code></pre>
  
  <p>My Service supports both Xml and JSON responses using DataContractSerializer (for xml) and DataContractJsonSerializer (for JSON).</p>
  
  <p>The response size might be like 30MB.</p>
  
  <p>What's the default allowed response size in ASP.NET Web API hosted in IIS?</p>
  
  <p>How to modify the default settings?</p>
  
  <p>What's the best practice in returning such large data (though it's not that large)?</p>
  
  <p>Should I zip the response?</p>
  
  <p>Also, we may get one request per second.</p>
  
  <p>Thanks</p>