Ir al contenido
Español

DistributedPubSubOptionsType

Esta página aún no está disponible en tu idioma.

DistributedPubSubOptionsType = object

Defined in: src/cluster/pubsub/DistributedPubSubOptions.ts:15

Plain options-object shape consumed by a DistributedPubSubMediator.

readonly cluster: Cluster

Defined in: src/cluster/pubsub/DistributedPubSubOptions.ts:16


readonly optional gossipIntervalMs?: number

Defined in: src/cluster/pubsub/DistributedPubSubOptions.ts:17


readonly optional maxRemoteNodesPerTopic?: number

Defined in: src/cluster/pubsub/DistributedPubSubOptions.ts:29

Most remote nodes that may claim subscribers for a single topic.


readonly optional maxSubscribersPerTopic?: number

Defined in: src/cluster/pubsub/DistributedPubSubOptions.ts:22

Most local subscribers one topic may hold. A Subscribe beyond it is answered with SubscribeRejected instead of growing the set.


readonly optional maxTopics?: number

Defined in: src/cluster/pubsub/DistributedPubSubOptions.ts:27

Most distinct topics this mediator may track. Bounds both axes a peer can push on: local Subscribe messages and gossiped topic names.


readonly optional sendToDeadLettersWhenNoSubscribers?: boolean

Defined in: src/cluster/pubsub/DistributedPubSubOptions.ts:35

Route a Publish that reached nobody to system.deadLetters instead of discarding it. On by default — an unrouted publish is a bug worth seeing, and dead letters are the framework’s channel for exactly that.