Mark 909
Mark 909

Reputation: 1835

WCF Implications of Increasing MaxObjectsInGraph

Is there any disadvantage in increasing this value other than not capturing when the server tries to return unusually large responses?

Upvotes: 1

Views: 759

Answers (2)

CodingWithSpike
CodingWithSpike

Reputation: 43728

The only things I can think of are:

  • Performance (More items to serialize)
  • Memory Usage (Larger lists/arrays)
  • Potentially more exploitable (Someone could spam you with very large requests and cause a DOS condition)

Upvotes: 2

BrandonZeider
BrandonZeider

Reputation: 8152

The only thing I can think of is performance. If your use case allows, you should consider returning only a "page" of data at a time. Again, you may not have that option...

Upvotes: 1

Related Questions