Add ZSTD compression

Description

CASSANDRA-14482 adds ZSTD compression to Cassandra 4, see ZstdCompressor. Apparently it's slower than LZ4, but offers better compression ratios.

We should probably support it on the driver side:

  • add an optional dependency to zstd-jni (check the license)

  • implement the new ByteBufCompressor, update DefaultDriverContext.buildCompressor()

  • add an integration test

  • update reference.conf

  • update the manual: "compression" and "integration" pages

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Olivier Michallat

Labels

None

PM Priority

None

Reproduced in

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Fix versions

Priority

Minor
Configure