nchan_redis_publish_msgpacked_max_size

The directive 'nchan_redis_publish_msgpacked_max_size' sets the maximum size for message payloads when using MessagePack serialization in Redis publishing.

Syntaxnchan_redis_publish_msgpacked_max_size size;
Defaultnone
Contexthttp
Arguments1

Description

The 'nchan_redis_publish_msgpacked_max_size' directive is particularly important in configurations where Nchan leverages Redis for message storage and publishing in a pub/sub architecture. When a message is published to Redis using MessagePack serialization, this directive specifies the maximum size, in bytes, that a serialized message can occupy. If a message exceeds this size limit, it will be rejected, ensuring that the buffer sizes in Redis remain manageable and conducive to efficient operation.

Config Example

nchan_redis_publish_msgpacked_max_size 1048576;  # Limits message size to 1MB

Setting the max size too low may result in valid messages being rejected.

Care should be taken to ensure the specified size is appropriate for the expected payloads.

← Back to all directives