How big can a JMS message object be?

The main question does not give an idea of ​​the problem, so I explain this.

The task is to separate the objects belonging to the family (based on some kind of relationship) and pass them in the form of JMS messages for the process. Everyone in the family must be handled together.

Now the family group can become bigger. so the question is. Is there any other approach that will not have the problem that I have listed.

+4
source share
2 answers

Theoretically, the message size is limited only by the size of the JVM. But I do not think it is good sending too large messages. I would say if your message is more than 10K, think about your design.

If you really need to send a lot of messages with your message, probably the best solution would be to store the data in the database and send the identifier of the main object with the message, so that the other side will be able to extract the data it needs.

+10
source

There is actually no size for the Object Message constraint in JMS . JMS is an API, and if its implementation should solve this problem.

for more information see this question / answer: JMS message size

+1
source

Source: https://habr.com/ru/post/1400810/


All Articles