Tagged articles
MessagePack
10 articles · Page 1 of 1
A performance bottleneck hidden in a fintech dashboard’s “coffee‑time” API was solved by profiling, discovering that 85% of latency came from JSON serialization, and replacing it with MessagePack, which reduced payload size by up to 74% and slashed end‑to‑end response time from 847 ms to 159 ms—a more than five‑fold improvement.
FlaskJSONMessagePack
0 likes · 11 min read

This article explains what MessagePack is, compares its size and speed to JSON in Node.js with real benchmarks, shows how to use the msgpackr library, and outlines the scenarios where its smaller binary payloads and native binary support outweigh its slower CPU serialization.
MessagePackNode.jsSerialization
0 likes · 12 min read

The article explains why JSON becomes a bottleneck in latency‑sensitive applications, compares four high‑performance binary serialization formats—Protocol Buffers, FlatBuffers, MessagePack, and CBOR—and provides practical guidance on selecting and deploying the right format to dramatically reduce latency, payload size, and CPU usage.
CBORFlatBuffersMessagePack
0 likes · 11 min read

The article explains why JSON can become a performance bottleneck in high‑throughput APIs and compares four binary serialization formats—Protocol Buffers, FlatBuffers, MessagePack, and CBOR—showing benchmark results, trade‑offs, and a practical migration checklist.
API performanceCBORFlatBuffers
0 likes · 10 min read

Bilibili designed a self‑built live‑streaming P2P system that uses WebRTC DataChannels and a Tracker‑mediated handshake to exchange 60 KB MessagePack‑encoded HLS segment blocks among viewers, employing a free‑market task allocation to balance seeding and consumption, thereby significantly cutting CDN bandwidth costs.
HLSLive videoMessagePack
0 likes · 16 min read

Bilibili built a browser‑native live P2P streaming system that uses WebRTC data channels to exchange 60 KB‑sized HLS segment blocks via a WebSocket tracker, employs MessagePack for efficient binary messaging, and adopts a decentralized free‑market peer‑role allocation to limit uploads, dramatically cutting bandwidth while supporting massive concurrent viewers.
BilibiliCDN optimizationLive video
0 likes · 16 min read

This article explains why storing JSON strings in Redis is inefficient, compares JSON with binary‑safe formats like MessagePack, evaluates compression algorithms such as ZSTD and LZ4, and provides Python examples showing how to reduce latency and memory usage when using Redis strings.
CompressionJSONMessagePack
0 likes · 5 min read

This article explains the design and testing of a virtual‑classroom whiteboard feature, covering the socket‑based transmission protocol, data encoding, message structures, coordinate system, supporting Java classes (Point, BoardBase, BoardUser), shape‑drawing utilities, and a runnable demo that generates base64‑encoded MessagePack payloads.
API TestingGraphicsJava
0 likes · 15 min read

This article analyzes the performance bottleneck caused by large Apollo configuration reads in a PHP application and presents multiple optimization strategies—including static variables, Yac/APCu caching, require‑file with opcache, and MessagePack serialization—to significantly lower CPU and memory consumption while maintaining configuration freshness.
ApolloCachingMessagePack
0 likes · 11 min read

The article explains the Hermes data‑communication protocol built on MessagePack, detailing its lightweight design, language‑independent object serialization, binary format extensions, client‑server serialization workflows, object‑tree construction, and traversal strategies that together enable efficient data exchange for the Lest distributed cache system.
Backend ProtocolMessagePackObject Tree
0 likes · 24 min read
