Skip to main content

GRPC_MAX_MESSAGE_SIZE

Constant GRPC_MAX_MESSAGE_SIZE 

Source
pub const GRPC_MAX_MESSAGE_SIZE: usize = _; // 4_194_304usize
Expand description

Maximum size of one gRPC message, pinned explicitly on every client endpoint and server service in the cluster (tonic’s default is the same 4 MiB today; setting it keeps the ceiling deterministic across tonic upgrades). Unary responses that could exceed it — an unlimited ScanPattern over a large prefix — must use ScanPatternStream instead; every streaming batch stays comfortably below it.