🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
Solace Message Compression
Hi Team,
I need some help with solace message compression.In our solace broker the maximum message size is configured as 10MB.So I used the below property to compress the message :
message.setIntProperty(SupportedProperty.SOLACE_JMS_COMPRESSION_LEVEL, 9);
As of now we don't have a specific broker to publish compressed message.So is there any way we can compress the message and publish to solace.
Best Answer
Answers
-
Hi @Monali,
Message compression is only about compression during transfer (that is between your client and the broker).
In the broker itself, the message is always un-compressed - and therefor the uncompressed message size is relevant for maximum message size.
You can compress your payload on publisher side and un-compress on consumer side, but this is outside the Solace API.
And to answer the question: "Why does the broker handle only uncompressed messages ?"
Solace broker do protocol translation - and some clients have compressed SMF as protocol, some clients have uncompressed REST or uncompressed MQTT ...
The only way to handle that fast with low latency is to handle only uncompressed messages.
Uli
0 -
Thanks @uherbst for responding so quickly
"You can compress your payload on publisher side and un-compress on consumer side, but this is outside the Solace API."
We are using sol-jms api,may be my question would be very basic but have few queries on the same:
So I can compress the payload using GZIP and publish the message as BytesMessage.Can we proceed with such approach.
0