I have a Web API method that returns a list of Events:
public HttpResponseMessage GetEvents()
{
...
}
My Service supports both Xml and JSON responses using DataContractSerializer (for xml) and DataContractJsonSerializer (for JSON).
The response size might be like 30MB.
What's the default allowed response size in ASP.NET Web API hosted in IIS?
How to modify the default settings?
What's the best practice in returning such large data (though it's not that large)?
Should I zip the response?
Also, we may get one request per second.
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…