Pretty much self explanatory. I was sending some message and it sent the error that the message was too big. What is the maximum message size?
Pretty much self explanatory. I was sending some message and it sent the error that the message was too big. What is the maximum message size?
It depends upon the message transport, each has its own limitations on message size.
From a guidance perspective, messages over 64k can really slow down broker performance, messages over 256k are a definite no for many systems.
| Transport | Limit |
|---|---|
| RabbitMQ | unlimited |
| Azure Service Bus | 256 KB for standard, 1 MB for premium |
| ActiveMQ | unlimited |
| SQS | 256 KB |
| Kafka | 1 MB |
| Azure Event Hub | 1 MB |
Larger messages will affect overall system performance, so keep that in mind. For instance, putting 1 MB messages in RabbitMQ will significantly hurt performance, even more so if using HA/quorum queues.
MassTransit supports the claim check pattern via Message Data to store large payloads outside of the message body.