Skip to content

basalt / webhooks/src / WebhookFanOutOptions

Interface: WebhookFanOutOptions ​

Defined in: webhooks/src/index.ts:171

Fan-out bounds for WebhookManager.dispatch. webhooksPlugin forwards them.

Extended by ​

Properties ​

dispatchConcurrency? ​

> optional dispatchConcurrency?: number

Defined in: webhooks/src/index.ts:182

Most deliveries one dispatch runs at once. Default DEFAULT_DISPATCH_CONCURRENCY (16).


maxEndpointsPerDispatch? ​

> optional maxEndpointsPerDispatch?: number | false

Defined in: webhooks/src/index.ts:180

Most active endpoints ONE scope (a tenant, or the tenant-agnostic set) may have subscribed to one event. A dispatch that matches more refuses that scope entirely — none of its endpoints is sent to, each gets a failed result (retryable: false) — rather than silently picking some of them; other scopes of the same dispatch are unaffected. false disables the cap. Default DEFAULT_MAX_ENDPOINTS_PER_DISPATCH (100).


onFanOutExceeded? ​

> optional onFanOutExceeded?: (info) => void

Defined in: webhooks/src/index.ts:187

Called once per refused scope (alerting/metrics). Default: console.warn. Must not throw — an exception is logged and swallowed.

Parameters ​

info ​

WebhookFanOutExceeded

Returns ​

void

Released under the MIT License.