Hi Sara,
Others will hopefully chime in if they specifically address this
scenario in their environment. You are correct in that it's easiest to
keep track of message size in your producers and consumers. RabbitMQ
does not provide this information.
If a message is published that exceeds the maximum a
PRECONDITION_FAILED error is returned and the channel is closed. It is
logged as well.
Thanks,
Luke