Yesterday I discovered that mediasoup is moving to FlatBuffers instead of JSON for its internal comms between the programming API and the worker executable.
This technical decision interests me a lot, and I would love to learn a bit more about this. So I’d like to ask you guys if there’s any writing I could read about the thought process behind the change. Once leaving the slow and bulky JSON, there are some obvious choices like FlatBuffers, but also others widely known like Cap’n Proto (such as used by Cloudflare). So this decision -as seen from outside- is not that clear-cut.
Kenton Varda -the author of Protobufs v2 and Cap’n Proto- has a popular post comparing these, but I’d love to know if you had some practical takeaways for mediasoup to tip the point in favor of one instead of another.
(or, you know, maybe all were just equally fit for the needs, and the choice was merely a matter of what’s the most popular! I’d imagine that’s a possibility too)