IMQOptions.compressAbove property
Compress a queue message with zstd when its JSON is longer than this many characters. 0, the default, never does. Read from IMQ_COMPRESS_ABOVE when not given.
Signature:
compressAbove?: number;
Remarks
Unlike IMQOptions.useGzip it need not agree between producer and consumer: every queue reads plain, gzipped and zstd messages alike. Turn it on only once every consumer runs a version that reads zstd, and on Node 22.15 or later; an older Node writes plain JSON whatever it says. IMQOptions.useGzip wins where both are set. Applies to queue messages only, not to IMessageQueue.publish().
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.