Difference between revisions of "Throttling"
From PowerUI
Bablakeluke (talk | contribs) (Created page with "By default, PowerUI will dispatch all web requests immediately. This can result in scenarios where large amounts of UI's being created at once can hit a server hard, and poten...") |
(No difference)
|
Revision as of 22:22, 29 November 2018
By default, PowerUI will dispatch all web requests immediately. This can result in scenarios where large amounts of UI's being created at once can hit a server hard, and potentially result in the server throttling your requests or outright rejecting them. You can limit this using the built in max request limit:
<syntaxHighlighting lang="csharp"> // During setup PowerUI.Http.Web.MaxSimultaneousRequests = 6; </syntaxHighlighting>
Using '6' essentially matches Chrome. This will restrict the maximum number of simultaneous HTTP/S requests leaving PowerUI to the number you specify. The default is -1 meaning no limit. Any additional requests made will simply wait in a queue until prior requests complete.