Class WebLibRequestTrafficShapingPerClientOptions
Configures the per-client request-rate token bucket partitioned by normalized client IP address.
Inherited Members
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.RateLimiting
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public sealed class WebLibRequestTrafficShapingPerClientOptions
Properties
| Edit this page View SourceBurstSize
Gets or sets the maximum burst capacity for one client-IP partition.
Declaration
public int BurstSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
The default of 40 permits short bursts above the sustained request rate.
Enabled
Gets or sets whether the per-client token bucket participates in the limiter chain.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MissingClientIpBehavior
Gets or sets how requests without a resolved client IP are handled by this per-client layer.
Declaration
public MissingClientIpBehavior MissingClientIpBehavior { get; set; }
Property Value
| Type | Description |
|---|---|
| MissingClientIpBehavior |
QueueLimit
Gets or sets the maximum queued request count per client-IP partition.
Declaration
public int QueueLimit { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
Queued requests are processed oldest-first by the native token bucket. The default is 20.
RequestsPerSecond
Gets or sets the sustained replenishment rate per client-IP partition, in requests per second.
Declaration
public int RequestsPerSecond { get; set; }
Property Value
| Type | Description |
|---|---|
| int |