Anton Roskvist created ARTEMIS-4430:
---------------------------------------

             Summary: Generalize and extend message compression
                 Key: ARTEMIS-4430
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4430
             Project: ActiveMQ Artemis
          Issue Type: Improvement
            Reporter: Anton Roskvist


Current implementation for message compression only applies for large messages 
sent directly from a client. It would be nice if there was an option to do this 
for any type of message, given a certain size. Something like the following 
client option: 
{code:java}
compressMessagesOver=n{code}
Ideally this would be available as an option for "core bridges" as well, since 
one of their use cases is for sending messages over high latency and/or low 
bandwidth links (WAN) where compression makes a lot of sense. Diverts might be 
a good candidate for this as well, enabling the possibility of message 
compression from clients who are otherwise unable to do it by themselves. 

Actually in place it should work transparently for any given consumer given 
that decompression happens in the ClientConsumer that's interfacing with the 
broker rather than in the protocol implementation.

I have been able to get parts of this to work but have run into problems 
compressing "ServerLargeMessage" messages. I'm hoping someone with more 
intimate knowledge of the broker internals can figure something out there.

A variant or addition might be an address setting to do this compression when 
receiving the message on the broker instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to