Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
I think it's common to put files in ZooKeeper that compress well, sometimes extremely well. The client (perhaps facilitated by Curator) can compress this, but it'd be nicer I think if ZK supported this natively.
Wether a file is compressed or not could be the choice of the client, and the ZK client could just do it for the user (ease of use), provided you have the appropriate dependency. The server need not do any compression; leave it to the client. A ZK client could tell the server what compression algorithms it supports, so that if a client (perhaps an old one) doesn't have the compression libs needed for a given file it wants, the server could decompress on its behalf. That should handle backwards-compatibility.