Skip to content

Option to GZIP messages on queue #559

Open
@khepin

Description

@khepin

@adm-bome @M-Porter @mattgrande

Would like your opinion on adding this as an option.

When doing more intensive usage of RabbitMQ, memory management on the broker can become an issue. At work, we've had good success extending the classes in this library to gzip the message bodies on the queues. This can in some cases have a very dramatic and beneficial effect on the cluster.

I think more apps could benefit from this, and this library could (should?) offer an easy option to turn this on.

A previous PR I had made for this (#447) enabled it as a connection level setting.

However at work, we've done this on a per-job basis instead.

That PR also only allowed a single compression algorithm (gzip) whereas if I made this to merge in this lib now, I would prefer we use a configurable compression algorithm.

Before committing more work to this though, I'd like to gather your thoughts on whether yes or no this should be part of this library.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions