Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我遇到了一些问题,我们的一些数据存储看到了很多吞吐量。我们正在使用使用 Jackson 序列化为 JSON 的 POJO。我们可以通过哪些方式压缩 JSON 数据?
一个最初的想法建议使用 BSON,但显然它并不比 JSON 小很多。
查看CJSON。
你可以在这里看到一些比较。
如果你不喜欢 JSON,你可以试试MessagePack:
MessagePack 是一个基于二进制的高效对象序列化库。它可以在 JSON 等多种语言之间交换结构化对象。但与 JSON 不同的是,它非常快速且小巧。
有多种语言的实现。