Maximum message size for RabbitMQ

前端 未结 1 1436
甜味超标
甜味超标 2021-01-17 19:46

What is the maximum size that a message can be when publishing to a RabbitMQ queue (pub/sub model) ?

I can\'t see any explicit limits in the docs but I assume there

1条回答
  •  旧巷少年郎
    2021-01-17 20:32

    I was doing comparison between Amazon Queue Service and RabbitMQ or other streaming+messaging platforms like kinesis, kafka. As Amazon Queue Service only supports min 2^10 bytes(1 Kilobytes) - max 2^18 bytes (256 Kilobytes), similarly kinesis has size limits too. (Don't know why?)

    Anyway In theory AMQueueProtocal would handle 2^64 bytes. So, even for a huge message, RabbitMQ might work in a single broker, definitely taking minutes/hours to persist but would or might not in a cluster of brokers. If the message transfer time between nodes (60seconds?) > heartbeat time between nodes, it will cause the cluster to disconnect and the loose the message.

    This thread is useful -> Can RabbitMQ handle big messages?

    References

    http://grokbase.com/t/rabbitmq/rabbitmq-discuss/127wsy1h92/limiting-the-size-of-a-message

    http://comments.gmane.org/gmane.comp.networking.rabbitmq.general/14665

    http://rabbitmq.1065348.n5.nabble.com/Max-messages-allowed-in-a-queue-in-RabbitMQ-td26063.html

    https://www.rabbitmq.com/heartbeats.html

    0 讨论(0)
提交回复
热议问题