Skip to main content

PUBSUB_CLIENT_SENDER_CHANNEL_SIZE

Constant PUBSUB_CLIENT_SENDER_CHANNEL_SIZE 

Source
pub(crate) const PUBSUB_CLIENT_SENDER_CHANNEL_SIZE: Config<usize>;
Expand description

Size of channel used to buffer send messages to PubSub service.

When the connection task falls more than this many messages behind, the oldest ones are dropped and the task sends every subscription again. A process pushes one diff per shard it appends to, and the appends of one tick finish within milliseconds of each other, so the channel has to hold such a burst.

NOTE: The channel is created in GrpcPubSubClient::connect. clusterd calls that at startup, before it has synced any configuration, so there only the default takes effect.