MailerQ
Features Pricing Documentation Blog Login
Back to overview

Compression inconsistenty

Published on December 13, 2016 | By MailerQ

In the latest release of MailerQ, we've introduced a feature to compress the data that is sent through RabbitMQ. We sadly made a mistake with the implementation. We therefore advise you not to use compression yet, and wait for the upcoming bugfix release.

What went wrong?

In the documentation you can read that MailerQ inspects the "content-encoding" property of the AMQP envelope that is wrapped around message consumed from RabbitMQ. If this property is set to "gzip", MailerQ treats the message as a compressed message and will decompress it before it processes it further.

This documentation is correct. However, in our implementation we made a slight mistake. Instead of inspecting the "content-encoding" property of the envelope, we inspect the "headers" property. This "headers" property can hold a table of user-supplied key/value pairs. Inside this "headers" table we then check whether a "content-type" key is set, and if this is the case and the associated value inside this table is set to "gzip", we consider the message to be compressed.

The implemented algorithm is different than the algorithm described in the documentation, which ignores the "headers" property, and only checks the "content-encoding" property of the envelope.

We've decided that the documented algorithm is more logical than the implemented one. We will therefore change the algorithm. In the next version we will no longer check the "headers" property, and use the "content-encoding" property instead. To prevent that this breaks compatibility with existing setups, we therefore recommend to wait with using compression until the next version of MailerQ.

Stay up to date

RSS Atom LinkedIn Twitter

Latest News & updates

AmqpPickup 1.0

We have released the initial version of the AmqpPickup application. This is a tool that picks up files from a pickup directory, and publi...

Httpcaller 1.0

We have released a new version of the AMQPHttp application. This release introduces improvements related to the signing of headers, conne...

Read more news

Stay up to date

Features

Why MailerQ

User Guide

Privacy Policy

User agreement

Terms of Service

Try MailerQ for free

Contact MailerQ

De Ruijterkade 112
1011 AB Amsterdam
+31 (0)20 520 61 90
info@mailerq.com

Proud member of:

M3AAWG CSA
© 2025 MailerQ