The 97% That Justifies 20 Gateways
Ada re-derives this chapter’s own numbers step by step, at full precision
ADA · CALCULATION AUDIT
The 97% That Justifies 20 Gateways
A smart city wires 10,000 environmental sensors to report every 30 seconds, sending 864 million messages to the cloud each month at a processing cost of $1,728. Edge filtering and zone aggregation collapse that stream to 26.8 million messages — a 97% cut — but only after buying 20 gateways for a one-time $10,000. This audit rebuilds the whole volume-and-cost chain to ask whether that 97% reduction really justifies the 20 gateways.
Companion to the chapter Diagnosing IoT Architecture Anti-Patterns — every number here comes from that chapter.
Ada: The smart-city worked example claims edge aggregation cuts cloud traffic by 97% and pays for itself against 20 gateways. Message counts carry no unit ambiguity, so let me rebuild the volume and cost chain from the chapter’s own inputs – 10,000 sensors, a 30-second interval, and the filtering rules stated.
- Cloud-only rate:
10000 x (3600 / 30) = 1,200,000messages/hour, so1,200,000 x 24 x 30 = 864,000,000messages/month. - Edge rate: filtering keeps
1,200,000 x 0.6 = 720,000/hour; zone aggregation is10000 / 100 = 100zones x(3600 / 300) = 12=1,200/hour; alerts are720,000 x 0.05 = 36,000/hour; total1,200 + 36,000 = 37,200/hour =37,200 x 24 x 30 = 26,784,000/month. - Message reduction:
(864,000,000 - 26,784,000) / 864,000,000 = 0.9690 = 96.9%, the chapter’s “97%”. - Cloud message-processing cost at
$0.000002each: cloud-only864,000,000 x 0.000002 = $1728/month falls to26,784,000 x 0.000002 = $53.57/month. - Gateway capital:
10000 / 500 = 20gateways x$500 = $10,000one-time, amortized$10,000 / 36 = $277.78/month. - Payload volume confirms the same lever:
864,000,000 x 250 bytes = 216,000 MBof raw uplink drops to6,610 MB(aggregates129.6 MB+ alerts6,480 MB), a96.9%cut on raw byte count.
The audit conclusion is that a single ratio – 26,784,000 / 864,000,000 – drives every downstream saving, because processing cost and byte volume both scale linearly with messages that reach the cloud. The design meaning is that the recurring win (about 97% less to ingest, store, and bill) dwarfs the one-time $10,000 of gateways once amortized to $278/month: edge placement earns its keep by moving the multiply-by-messages term off the cloud, not by adding boxes to a diagram.
Every number above is taken from the chapter’s own material and re-derived step by step.