add lz4 compression for jackson (#29012)

This commit is contained in:
contrun 2020-05-22 04:37:22 -07:00 committed by GitHub
parent 6a07c4f809
commit 11816df236
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 152 additions and 48 deletions

View file

@ -377,7 +377,9 @@ the `jackson-json` binding the default configuration is:
@@snip [reference.conf](/akka-serialization-jackson/src/main/resources/reference.conf) { #compression }
Messages larger than the `compress-larger-than` property are compressed with GZIP.
Supported compression algorithms are: gzip, lz4. Use 'off' to disable compression.
Gzip is generally slower than lz4.
Messages larger than the `compress-larger-than` property are compressed.
Compression can be disabled by setting the `algorithm` property to `off`. It will still be able to decompress
payloads that were compressed when serialized, e.g. if this configuration is changed.