effect-io-ai

Package: effect
Module: PubSub

PubSub.BackPressureStrategy

Represents the back-pressure strategy for bounded PubSub values.

When to use

Use to preserve every message for current subscribers when a bounded custom PubSub should make publishers wait for capacity instead of dropping or evicting messages.

Details

Publishers wait when the PubSub is at capacity, so all current subscribers can receive every published message.

Gotchas

A slow subscriber can slow down publishers and other subscribers.

See

Signature

declare class BackPressureStrategy<A>

Source

Since v4.0.0