Search code examples
nsq

What's the max size of a NSQ message?


I'm evaluating using NSQ, http://nsq.io/, for a specific project. The idea is to setup a data pipeline where each step is a job, and where the state ideally will be located in the message body.

Which got me to think about a potential maximal message size. I don't manage to find any documentation on the subject. Can it be any size? I guess it will affect performance if messages are big enough to not fit in memory.


Solution

  • as far as I can tell from the documentation, it looks like it's 1MB by default.

    I know it sounds like a lot but I managed to hit this limit.

    What I'm doing now is to send an NSQ message with the minimum amount of data regarding the event, and get the full data on the other end when I handle it.