StarRocks / starrocks-connector-for-kafka

Apache License 2.0
4 stars 8 forks source link

[Feature] Sink supports LZ4 compression with json format #27

Open banmoy opened 1 week ago

banmoy commented 1 week ago

After StarRocks supports lz4 compression for stream load json format in https://github.com/StarRocks/starrocks/pull/43732, the connector can compress the json data before sending to StarRocks which will reduce the network traffic significantly. In the test to load clickbench data to starrocks, the compression ratio can be ~8, and the load performance has a 3.64% degradation which is acceptable. This RP depends on stream-load-sdk. You can enable it with the following configuration

sink.properties.compression=lz4_frame