JSON / REST train Protobuf / gRPC train
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

gRPC vs REST: Protobuf vs JSON Payload Race

Mobile apps constantly choose between REST/JSON and gRPC/Protocol Buffers for talking to a backend, but the size difference is usually described in vague percentages. This simulator builds a real API record from a configurable schema, encodes it two ways with an actual byte-accurate JSON serializer and a hand-written Protocol Buffers wire-format encoder (varint tags, length-delimited strings, fixed32 floats — the same rules real gRPC stacks use), then computes true transfer time across four cellular network profiles from bandwidth and round-trip latency. A 3D "packet train" — its length set by payload size, its speed set by transfer time — races both formats from device to server so the gap is something you watch, not just a number.