How to limit the size of input messages in RabbitMQ
Updated -
Issue
You must limit the size of input messages that services accept to protect them against Denial of Service (DoS) attacks.
Resolution
RabbitMQ has a parameter for setting the maximum message size. The default value of the parameter max_message_size in bytes is 134217728. For example, to limit the message size to 128 KB, set the following parameter in the
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.