Chen Yu
Chen Yu

Reputation: 4077

beyond frame max size

In the source code of rabbit.app, frame has max size {frame_max,131072}. If the message's size beyond the limit, will message will be refused to send or the message will be divided and then to be sent again?

Upvotes: 2

Views: 1669

Answers (1)

johlo
johlo

Reputation: 5500

Your message will be split into several frames if it is larger than the frame_max variable, see section 2.3.5.2 in the AMQP specification. On the receiving side it is reassembled automatically and you are presented with the message.

The actual frame size used may be different from the configured frame_max as it is negotiated with clients. I think the frame size is configurable mainly for performance tuning, see the comments in the RabbitMQ configuration docs

Upvotes: 3

Related Questions