certstream-server-go icon indicating copy to clipboard operation
certstream-server-go copied to clipboard

Ability to send certs compressed so less bandwidth is used

Open d-Rickyy-b opened this issue 1 year ago • 0 comments
trafficstars

Currently each "lite" cert is around 1500 bytes in size. That results in ~15 Mbit/s of data being sent over the network per client.

By compressing the data, we should be able to reduce that. An example cert of size 1449 bytes compressed via gzip resulted in 805 bytes. That makes a compression ratio of 1.8 and hence saves about 44.4% of data, resulting in ~8.25 Mbit/s per client.

Raw deflate of the same example cert resulted in a compression to 787 bytes. Making a compression ratio of 1.84 and saves about 45.7% of data, resulting in ~8.15 Mbit/s

Brotli takes us down to 710 bytes. Compression ration: 2.04 and saves about 51% of data, resulting in 7.39 Mbit/s


Still: Adding compression means that there is more workload on the clients to be done, which also means that these could potentially process certs even slower than before. Some testing is necessary before implementing compression into certstream.

d-Rickyy-b avatar Dec 16 '23 17:12 d-Rickyy-b