Class WebLibRequestTrafficShapingOptions
Configures WebLib request traffic shaping on top of ASP.NET Core's native rate-limiters.
Inherited Members
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.RateLimiting
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public sealed class WebLibRequestTrafficShapingOptions
Remarks
The per-client and server-wide token buckets are both enabled by default with finite WebLib starting values. These values are infrastructure defaults, not capacity guarantees, and consumers should tune them after representative load testing. The optional global concurrency limit remains an independent third dimension for active work.
Properties
| Edit this page View SourceGlobalConcurrencyLimit
Gets or sets the optional whole-application concurrency limit.
Declaration
public int? GlobalConcurrencyLimit { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Remarks
null disables the concurrency limiter, which is the default. This limiter is orthogonal to both request-rate token buckets and therefore remains effective even when either token-bucket layer is disabled.
PerClient
Gets or sets the per-client token-bucket settings.
Declaration
public WebLibRequestTrafficShapingPerClientOptions PerClient { get; set; }
Property Value
| Type | Description |
|---|---|
| WebLibRequestTrafficShapingPerClientOptions |
ServerWide
Gets or sets the server-wide token-bucket settings.
Declaration
public WebLibRequestTrafficShapingServerWideOptions ServerWide { get; set; }
Property Value
| Type | Description |
|---|---|
| WebLibRequestTrafficShapingServerWideOptions |