Try It Yourself / Calculate Edge ROI

Try It Yourself / Calculate Edge ROI

animation
analytics-ml
edge-computing

Try It Yourself

Scenario: You’re proposing edge gateways to reduce cloud costs for a sensor deployment.

Your Data:

  • Number of sensors: _______
  • Sample rate (readings/hour): _______
  • Bytes per reading: _______
  • Current cloud costs ($/month): _______

Step 1: Calculate raw bandwidth

def calculate_bandwidth(sensors, rate_per_hour, bytes_per_reading):
    daily_bytes = sensors * rate_per_hour * 24 * bytes_per_reading
    monthly_gb = (daily_bytes * 30) / 1_000_000_000
    return monthly_gb

monthly_data_gb = calculate_bandwidth(
    sensors=1000, rate_per_hour=60, bytes_per_reading=20
)
print(f"Monthly bandwidth: {monthly_data_gb:.2f} GB")

Step 2: Apply edge reduction strategies

  • Downsample: 60/hour to 1/hour = 60x reduction
  • Aggregate: 10 sensors to 1 summary = 10x reduction
  • Filter: Remove 80% unchanged readings = 5x reduction
  • Total reduction: 60 x 10 x 5 = 3,000x

Step 3: Calculate savings

def calculate_edge_roi(cloud_monthly_cost, edge_hardware_cost,
                       reduction_factor, monthly_ops_cost=50):
    new_cloud_cost = cloud_monthly_cost / reduction_factor
    monthly_savings = (cloud_monthly_cost - new_cloud_cost
                       - monthly_ops_cost)
    payback_months = (edge_hardware_cost / monthly_savings
                      if monthly_savings > 0 else float('inf'))
    return {
        'new_monthly_cost': new_cloud_cost,
        'monthly_savings': monthly_savings,
        'payback_months': payback_months,
        'annual_roi_pct': ((monthly_savings * 12 - edge_hardware_cost) / edge_hardware_cost * 100) if edge_hardware_cost > 0 else 0
    }

roi = calculate_edge_roi(
    cloud_monthly_cost=500,
    edge_hardware_cost=2000,
    reduction_factor=3000,
    monthly_ops_cost=50
)

print(f"New monthly cost: ${roi['new_monthly_cost']:.2f}")
print(f"Monthly savings: ${roi['monthly_savings']:.2f}")
print(f"Payback period: {roi['payback_months']:.1f} months")
print(f"Annual ROI: {roi['annual_roi_pct']:.0f}%")

What to Observe:

  • Payback period under 12 months = strong business case
  • Data reduction factor is the key variable
  • Hidden costs: maintenance, firmware updates, hardware refresh
  • Non-financial benefits: latency, privacy, offline operation

Extension Challenge: Add latency calculations. If cloud = 200 ms round-trip and edge = 10 ms, what percentage of control loop budget do you save?

Back to the chapter