3 ms·
What is your idea of the arbitrary threshold at which point one should no longer use a message queue?
by justinsaccount 11y ago
What is your idea of the arbitrary threshold at which point one should no longer use a message queue?
- brobinson 11y agoI don't know of a good threshold, but you should generally favor small messages -> big computations. If a 1mb message isn't handled properly, it could be retransmitted, etc. In the case of a 1mb message, it sounds like that data should be serialized into a database and the id or whatever is needed to access it is passed along in the message instead. It's like emailing a 10mb powerpoint instead of throwing it on Dropbox and sending a link to it.
- calpaterson 11y agoI just haven't worked on any messaging system that ever sent messages that large. Normally instead of putting data directly on a queue you put in a database and then send some kind of reference over the queue. That's mostly to avoid data races but as a side effect it makes it hard to get large messages like 1MB.