There is a non-normative compression practice in the Tahu project.
https://github.com/eclipse/tahu/blob/develop/client_libraries/java/src/main/java/org/eclipse/tahu/util/PayloadUtil.java
Essentially, you
eg.
{"timestamp": 16000000000,
"metrics": [{"name": "algorithm",
"timestamp": 16000000000,
"datatype": "String",
"string_value": "GZIP"}],
"seq": 12,
"uuid": "SPBV1.0_COMPRESSED",
"body": <GZIP compressed bytes of the actual payload>
}
or
{"timestamp": 16000000000,
"seq": 12,
"uuid": "SPBV1.0_COMPRESSED",
"body": <DEFLATE compressed bytes of the actual payload>
}
plusses are myriad like optimised CPU usage, so hardly any loss of performance.
minus: CPU must support it and needs a special dedicated library which enables it.