George3d6 / Inquisitor

An easily extensible, minimal footprint monitoring tool. (Still in the testing phase)
BSD 2-Clause "Simplified" License
30 stars 4 forks source link

Ad compression layer to the agent -> receptor communication #28

Open George3d6 opened 6 years ago

George3d6 commented 6 years ago

Just what the title of the issue says, nothing heavy weight, but I'd be good to have the possibility to have a layer that can gzip/ungzip the messages sent between the two.

This could also serve as a model for adding additional layers (e.g. auth and encryption).

It's not really urgent, since message size isn't that big an issue, but it's a small improvement that wouldn't be hard to implement or affect the logic of the rest of the code much.

Maybe have it configurable in the config files of the agent, something like:

compression:
    type: string (default none, other possibilities being gzip and maybe later xzip or bzip)
    level: int (default 6)