merlinz01 / redpepper

A state-based server management system written in Python
MIT License
1 stars 0 forks source link

Use MessagePack encoding for communications #56

Open merlinz01 opened 4 days ago

merlinz01 commented 4 days ago

We should switch to the MessagePack encoding for communications between the manager and agents.

This will allow greater flexibility and remove the need to JSON-encode data with arbitrary structure, as well as improve performance when handling binary data.

The main downside of MessagePack is the lack of schema enforcement, but this shouldn't be much of a problem. Perhaps we can substitute Pydantic models for schema validation.

merlinz01 commented 4 days ago

In fact, we should conform at least mostly to asynchronous msgpack-rpc.