Class WebLibRequestTrafficShapingServerWideOptions
Configures the server-wide request-rate token bucket.
Inherited Members
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.RateLimiting
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public sealed class WebLibRequestTrafficShapingServerWideOptions
Remarks
The server-wide limiter is enabled by default with WebLib starting values of 10,000 sustained requests per second,
a 10,000-request burst capacity, and a 10,000-request bounded queue. These values are not a capacity guarantee and
should be tuned for the consumer after representative load testing. The queue uses native OldestFirst FIFO
arrival ordering and does not provide per-client fairness.
Properties
| Edit this page View SourceBurstSize
Gets or sets the maximum aggregate burst capacity for the server instance.
Declaration
public int BurstSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
The WebLib starting default is 10,000 requests.
Enabled
Gets or sets whether the server-wide token bucket participates in the limiter chain.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
QueueLimit
Gets or sets the maximum request count queued by the shared server-wide token bucket.
Declaration
public int QueueLimit { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
The WebLib starting default is 10,000 queued requests, approximately one sustained-rate second.
RequestsPerSecond
Gets or sets the aggregate sustained replenishment rate, in requests per second.
Declaration
public int RequestsPerSecond { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
The WebLib starting default is 10,000 requests per second.