Checkpoint: Payload Evidence
Checkpoint: Payload Evidence
animation
rest
app-protocols
Tip
Checkpoint: Payload Evidence
Checkpoint: Payload Evidence
The payload section gives you the evidence a design review should keep:
- You now know that the example JSON body is
64bytes and the compact CBOR estimate is28bytes. - You now know that
64 - 28 = 36bytes, or56.25%smaller, is a payload-size claim first; it becomes an energy claim only when transmit airtime dominates the device budget. - You now know why the chapter recommends JSON for cloud APIs and debugging, CBOR for constrained CoAP payloads, and Protocol Buffers for high-volume systems with strong typing.