← Back to the chapter · Next detail →
Technical detail · AMQP Delivery: Sizing and Reliability Contracts
Payload efficiency and batching
For this worksheet, overhead is the sum of the method envelope, method content, content-header frame and body envelope:
This is an illustrative subtotal, not a protocol minimum. Message efficiency is the payload divided by payload plus overhead, multiplied by 100%.
| Payload | Total size | Efficiency |
|---|---|---|
| 10 B | 126 B | 7.9% (poor) |
| 120 B | 236 B | 50.8% (moderate) |
| 800 B | 916 B | 87.3% (good) |
For the factory’s 120-byte telemetry, nearly half the modeled bytes are overhead. Batching 10 readings into one 1,200-byte message improves efficiency from about 51% to 91%. The saving is (10 × 236 B) − (1,200 B + 116 B) = 1,044 B per ten readings, a 44% reduction. These comparisons use the same 116-byte assumption throughout.