[nanomsg] Compressing TCP streams

  • From: Achille Roussel <achille.roussel@xxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Sun, 1 Jun 2014 23:53:49 -0700

Hello,

Have there been any discussions on providing a mechanism for compressing TCP 
streams used by nanomsg?

I understand that each message can be compressed before being sent to nanomsg, 
but a compression algorithm will perform much better if it can reuse its 
context over and over for each message. The compression context has to be in 
sync between the two communication endpoints, which are not exposed by nanomsg, 
that would require the compression and decompression to be done within the 
library itself. 

This would require some changes to the transport protocol to tell whether the 
pipe is going to be compressed or uncompressed, and maybe which algorithm will 
be used. 

Achille Roussel
+1 415 490 6339

Other related posts: