Talend ESB Compression policy - 8.0

Talend ESB Service Developer Guide

Version
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Runtime
Content
Design and Development
Installation and Upgrade
Last publication date
2023-11-06

This section shows you how to use the Compression Feature in Talend ESB.

The compression feature of Talend ESB inherits the CXF GZIPOutInterceptor and enables GZIP compression of on-the-wire data. However, note that using Talend ESB Compression and CXF GZIP Compression together is not recommended.

The Talend ESB Compression feature is driven completely by the threshold attribute. So, the supported attribute is threshold - the value, in bytes, under which messages are not compressed. And its default value is "1024".

The Compression policy can be enabled via policy or by adding the feature, depending on the type of service (SOAP or REST).

Enabling via feature (support both Soap and REST service)

You can add the Compression feature to the features list:

<jaxws:features>
    <bean id="compressionFeature" class="org.talend.esb.policy.compression.feature.CompressionFeature">
        <property name="threshold" value="100"/>
    </bean>
</jaxws:features>