Domain Requirements Calculator
Try Change Domain 1: and Domain 2:, then press Calculate latency ratios.
Observe Watch LATENCY and RELIABILITY differences after pressing Calculate latency ratios.
Explain Explain why latency ratios > 1000x suggest different architectures.
Calculate latency ratios
Reset
Technical boundaries. Each domain uses fixed latency, reliability, power, data volume and regulation values. The comparison calculates latency ratios and reliability gaps.
Domain Requirements Calculator
Use this interactive calculator to compare technical requirements across different IoT application domains:
viewof selectedDomain1 = Inputs. select (
["Autonomous Vehicles" , "Industrial Control" , "Healthcare Monitoring" , "Smart Grid" , "Smart Cities" , "Agriculture" , "Smart Home" ],
{label : "Domain 1:" , value : "Autonomous Vehicles" }
)
viewof selectedDomain2 = Inputs. select (
["Autonomous Vehicles" , "Industrial Control" , "Healthcare Monitoring" , "Smart Grid" , "Smart Cities" , "Agriculture" , "Smart Home" ],
{label : "Domain 2:" , value : "Agriculture" }
)
domainRequirements = ({
"Autonomous Vehicles" : {latency : 10 , reliability : 99.999 , power : "Unlimited" , dataVolume : "GB/day" , regulation : "Safety-critical" },
"Industrial Control" : {latency : 100 , reliability : 99.99 , power : "Mains" , dataVolume : "MB/hour" , regulation : "Industry standards" },
"Healthcare Monitoring" : {latency : 1000 , reliability : 99.9 , power : "Days-weeks" , dataVolume : "KB-MB/hour" , regulation : "FDA/CE medical" },
"Smart Grid" : {latency : 1000 , reliability : 99.9 , power : "Mains/battery" , dataVolume : "KB-MB/hour" , regulation : "Utility regulations" },
"Smart Cities" : {latency : 60000 , reliability : 99.0 , power : "Years" , dataVolume : "Bytes-KB/hour" , regulation : "Municipal" },
"Agriculture" : {latency : 3600000 , reliability : 95.0 , power : "Years" , dataVolume : "Bytes/hour" , regulation : "Minimal" },
"Smart Home" : {latency : 5000 , reliability : 95.0 , power : "Months-years" , dataVolume : "KB/hour" , regulation : "Consumer safety" }
})
{
const domain1 = domainRequirements[selectedDomain1];
const domain2 = domainRequirements[selectedDomain2];
const latencyRatio = (domain2. latency / domain1. latency ). toFixed (0 );
const reliabilityDiff = (domain1. reliability - domain2. reliability ). toFixed (3 );
const container = html `<div style="
background: linear-gradient(135deg, #2C3E50 0%, #16A085 100%);
padding: 24px;
border-radius: 12px;
color: white;
font-family: Arial, sans-serif;
margin: 20px 0;
">
<h3 style="margin-top: 0; color: white; border-bottom: 2px solid rgba(255,255,255,0.3); padding-bottom: 12px;">
Domain Comparison: ${ selectedDomain1} vs ${ selectedDomain2}
</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 20px;">
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 8px; border-left: 4px solid #E67E22;">
<div style="font-size: 12px; opacity: 0.8; margin-bottom: 8px;">LATENCY</div>
<div style="font-size: 24px; font-weight: bold; color: #E67E22;"> ${ domain1. latency } ms</div>
<div style="font-size: 14px; margin-top: 4px;"> ${ selectedDomain1} </div>
<div style="font-size: 24px; font-weight: bold; color: #E67E22; margin-top: 12px;"> ${ domain2. latency } ms</div>
<div style="font-size: 14px; margin-top: 4px;"> ${ selectedDomain2} </div>
<div style="margin-top: 12px; padding: 8px; background: rgba(0,0,0,0.2); border-radius: 4px; font-size: 13px;">
<strong> ${ latencyRatio} x</strong> difference
</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 8px; border-left: 4px solid #3498DB;">
<div style="font-size: 12px; opacity: 0.8; margin-bottom: 8px;">RELIABILITY</div>
<div style="font-size: 24px; font-weight: bold; color: #3498DB;"> ${ domain1. reliability } %</div>
<div style="font-size: 14px; margin-top: 4px;"> ${ selectedDomain1} </div>
<div style="font-size: 24px; font-weight: bold; color: #3498DB; margin-top: 12px;"> ${ domain2. reliability } %</div>
<div style="font-size: 14px; margin-top: 4px;"> ${ selectedDomain2} </div>
<div style="margin-top: 12px; padding: 8px; background: rgba(0,0,0,0.2); border-radius: 4px; font-size: 13px;">
<strong> ${ reliabilityDiff} %</strong> gap
</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 8px; border-left: 4px solid #16A085;">
<div style="font-size: 12px; opacity: 0.8; margin-bottom: 8px;">DATA VOLUME</div>
<div style="font-size: 20px; font-weight: bold; color: #16A085;"> ${ domain1. dataVolume } </div>
<div style="font-size: 14px; margin-top: 4px;"> ${ selectedDomain1} </div>
<div style="font-size: 20px; font-weight: bold; color: #16A085; margin-top: 12px;"> ${ domain2. dataVolume } </div>
<div style="font-size: 14px; margin-top: 4px;"> ${ selectedDomain2} </div>
</div>
</div>
<div style="margin-top: 16px; padding: 16px; background: rgba(0,0,0,0.2); border-radius: 8px; border-left: 4px solid #E67E22;">
<div style="font-size: 14px; font-weight: bold; margin-bottom: 8px;">Key Insight:</div>
<div style="font-size: 13px; line-height: 1.6;">
${ latencyRatio > 1000
? `These domains differ by <strong> ${ latencyRatio} x in latency tolerance</strong>. ${ selectedDomain1} requires real-time edge processing, while ${ selectedDomain2} can use cloud analytics.`
: latencyRatio > 10
? `With <strong> ${ latencyRatio} x latency difference</strong>, ${ selectedDomain1} needs edge computing while ${ selectedDomain2} can use cloud-based processing.`
: `Similar latency requirements ( ${ latencyRatio} x difference) suggest these domains could share architectural patterns.` }
</div>
</div>
</div>` ;
return container;
}
Using the Calculator
Compare any two domains to understand technical differences:
Latency ratios > 1000x : Fundamentally different architectures (edge vs cloud)
Reliability gaps > 4% : Different redundancy strategies needed
Power differences : Battery life drives sensor density and cost
Regulation : Determines development timeline and certification
Try comparing Healthcare Monitoring with Smart Home to see how medical regulation affects design.
Back to the chapter