Skip to content

Compression #418

Answered by ghost
maxpain asked this question in Q&A
Dec 20, 2020 · 1 comment
Discussion options

You must be logged in to vote

My opinion is that compression is solving a symptom of having an inefficient application protocol. By using binary, dense protocols such as ProtoBuf or similar, instead of sparse text protocols with repeating key strings like JSON you can eliminate the need for compression altogether.

But for JSON, you probably want something like DEDICATED_COMPRESSOR_4KB as it has the advantage of only adding 4kb memory usage per connection, while still having a decently sized sliding window.

But again, a lot of optimizations can be made if you skip compression and use a binary protocol tailored for minimal redundancy.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maxpain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant