Analytics & ML · Study deck

Edge Placement and Cost Contracts

Picture a food plant with a camera watching sealed packs.

Data Dora is your guide for this deck.

edgepatternsplacement
Data Dora, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: If the requirement is low monthly cost for high-rate sensors, the edge earns its place by reducing raw streams into summaries or events before the uplink.
  • Explain: Worked example: when hardware pays for itself: The payback improves when local processing also avoids failed safety requirements, lowers storage volume, or reduces cloud inference.
  • Explain: Reducing a vibration stream to FFT peaks may be correct for bearing monitoring, but reducing it to a single average can destroy the fault signature.
  • Explain: If the requirement is privacy, the edge keeps sensitive raw data local and sends only derived features.
iotclass.org

Major section

Start With the Story

One job must stop a faulty pack before it leaves the line.

  • The system owner must decide where each job runs and what each choice will cost.
  • A fast stop may belong beside the line.
  • A long study may use a distant service and a larger store.
  • This opening does not choose hardware or prove the final bill.
iotclass.org

Major section

Start With Failure Constraints

Practical edge design starts with a constraint, not with a preferred platform.

  • If the requirement is low monthly cost for high-rate sensors, the edge earns its place by reducing raw streams into summaries or events before the uplink.
  • If the requirement is privacy, the edge keeps sensitive raw data local and sends only derived features.
  • Data volume decides whether cloud-only is affordable.

Why it matters

If the requirement is a 20 ms safety response, the decision is nearly made: the detection and shutdown path must run at the device or local gateway because a cloud round trip can exceed the whole budget.

Decision tree for choosing processing location: evaluate latency response requirement, data-volume bandwidth pressure, privacy data constraints, then select edge, fog, or cloud location.
Processing-location decision tree: test hard response deadlines first, then bandwidth pressure and privacy constraints before choosing edge, fog, or cloud placement.
iotclass.org

Major section

Start With Failure Constraints (continued)

The most useful sequence is latency first, then data volume, then privacy and operational ownership.

  • Latency decides whether cloud is even eligible.
  • Privacy decides what cannot leave the site.
  • Operations decide whether the chosen edge hardware can be monitored, updated, and replaced without turning every gateway into an unmanaged mini data center.
iotclass.org

Major section

Start With Failure Constraints (continued)

Data volume and privacy can redirect any branch, while an explicit fallback may require work at more than one tier.

  • Intuition: the edge is justified when local action, local reduction, or local privacy changes the outcome.
  • If none of those apply, cloud-first is usually cheaper and easier to operate.
  • The result continues the chapter's running narrative: placement is a failure contract with measured costs, not a permanent label attached to an algorithm.
iotclass.org

Major section

Placement Requirements Worksheet

A gateway or fog node fits protocol translation, buffering, aggregation, and moderate inference across many sensors.

  • The worksheet should name the function, deadline, raw data rate, reduced data rate, privacy classification, failure mode, and owner.
  • It worsens when maintenance, spares, field replacement, or OTA operations are ignored.
  • Device-local logic is best for deterministic control loops and safety interlocks.

Key terms

Hybrid systems
Hybrid systems are common because a single application can contain all three classes at once.
iotclass.org

Major section

Placement Requirements Worksheet (continued)

Worked example: when hardware pays for itself: The payback improves when local processing also avoids failed safety requirements, lowers storage volume, or reduces cloud inference.

  • Cloud fits model training, long-horizon analytics, dashboards, and cross-site optimization.
  • The edge decision should preserve the threshold version, input window, clock source, and model hash that justified an action.
  • The cloud should preserve the training window, rollout version, and rollback rule that produced any model pushed down to devices.
iotclass.org

Major section

Under the Hood: The Real Edge Cost Model

Latency risk is about worst-case behavior, not average behavior.

  • A cloud path with a 150 ms average can spike above a second during congestion, DNS failures, cellular handover, or regional service incidents.
  • Data reduction value depends on whether the edge keeps the right information.
  • Hardware lifecycle is the part many estimates miss.

Key terms

One useful calculation
One useful calculation is the break-even reduction factor.

Why it matters

A deployment may be required because cloud latency cannot meet a shutdown deadline even if the gateways take years to pay back.

iotclass.org

Major section

Under the Hood: The Real Edge Cost Model (continued)

Another deployment may be optional because cloud latency is acceptable, but edge reduction pays back quickly on bandwidth.

  • If the control loop fails when the tail is bad, the function belongs locally even when cloud processing looks cheaper on a spreadsheet.
  • Safety and control paths need deterministic local behavior.
  • Reduction must preserve evidence.
iotclass.org

Major section

Under the Hood: The Real Edge Cost Model (continued)

The cost model must therefore pair each reduction rule with the decision it still supports.

  • A 95% reduction is useful only if summaries, features, or event windows preserve the diagnostic evidence that the cloud needs later.
  • Gateways need spares, monitoring, certificates, OTA updates, rollback, field replacement, and security patching.
  • Hardware is a fleet.
iotclass.org

Major section

Under the Hood: The Real Edge Cost Model (continued)

Reducing a vibration stream to FFT peaks may be correct for bearing monitoring, but reducing it to a single average can destroy the fault signature.

  • A $5,000 gateway purchase is not the total cost; it is the start of a fleet.
  • Cloud still has a role.
  • Another useful check is reversibility.
iotclass.org

Major section

Under the Hood: The Real Edge Cost Model (continued)

Evidence quality closes the loop: each edge action needs enough local metadata to explain what happened when cloud records arrive later.

  • Mixing those two arguments hides risk: the financial model can be adjusted, but a missed control deadline can make the architecture invalid.
  • Filtering, aggregation, FFT features, and event clips are only valid when they retain the evidence needed for later decisions.
  • One useful calculation is the break-even reduction factor.
iotclass.org

Major section

Under the Hood: The Real Edge Cost Model (continued)

Edge nodes require health checks, certificates, OTA rollout, rollback, spares, and replacement procedures.

  • Training, cross-site correlation, dashboards, and long-term storage often stay in the cloud even when action runs locally.
  • If it also satisfies a hard safety requirement that cloud cannot meet, the decision may be justified even before the financial break-even point.
  • Cloud services can often be resized or redeployed quickly; physical edge fleets cannot.
iotclass.org

Deck summary

Key takeaways

One job must stop a faulty pack before it leaves the line.

  • Practical edge design starts with a constraint, not with a preferred platform.
  • The most useful sequence is latency first, then data volume, then privacy and operational ownership.
  • Data volume and privacy can redirect any branch, while an explicit fallback may require work at more than one tier.
  • A gateway or fog node fits protocol translation, buffering, aggregation, and moderate inference across many sensors.
iotclass.org

Retrieval practice

Recall check 1 of 5

Data Dora says: answer from memory, then check your reasoning.

Q1Which practical question should usually be answered first when deciding whether a function belongs at the edge or in the cloud?

AWhether the cloud provider has the largest model catalog for future experiments.
BWhether all functions can share one deployment tier for simpler diagrams.
CWhether edge hardware is fashionable for the application domain this year.
DWhether a hard response deadline or outage mode makes cloud round trips unsafe.
Show answer

Answer: D A hard latency or availability requirement can make cloud placement ineligible before cost comparisons matter.

iotclass.org

Retrieval practice

Recall check 2 of 5

Data Dora says: answer from memory, then check your reasoning.

Q2A vibration system needs 20 ms shutdowns and weekly model retraining across all machines. Which placement is most practical?

ARun both shutdown and retraining in the cloud for one shared code path.
BRun shutdown logic at the edge, then send summaries for cloud training.
CRun both functions on each sensor and avoid cloud storage completely.
DDelay all decisions until Level 4 storage has persisted every raw sample.
Show answer

Answer: B The hard shutdown deadline belongs near the machine, while weekly retraining benefits from cloud history and compute.

iotclass.org

Retrieval practice

Recall check 3 of 5

Data Dora says: answer from memory, then check your reasoning.

Q3A team compares cloud fees with gateway purchase price for edge placement. What must its cost record add?

AOnly the one-time gateway invoice, treating later operations as free.
BUse only fast lab inference time as the deployment cost measure, because it represents field operation.
CTreat certificates and rollback as free because their software implementation has no upkeep cost.
DGateway monitoring, updates, spares, replacement, and evidence for edge actions.
Show answer

Answer: D Lifecycle work and action proof are part of edge cost.

iotclass.org

Retrieval practice

Recall check 4 of 5

Data Dora says: answer from memory, then check your reasoning.

Q4A local shutdown is required to meet a deadline, but the gateway fleet has a slow financial payback. Which approval logic is sound?

AReject local shutdown solely because gateway fleet payback is slow.
BApprove local shutdown on deadline proof; review fleet payback in a separate cost record.
CClaim a passed safety test also proves the gateway fleet is profitable.
DAverage quiet-day cloud delay and use it as both safety and payback proof.
Show answer

Answer: B The safety boundary cannot be traded away by a weak financial return.

iotclass.org

Retrieval practice

Recall check 5 of 5

Data Dora says: answer from memory, then check your reasoning.

Q5Why is average cloud latency alone a weak basis for deciding that a safety function can run in the cloud?

AAverage cloud latency is always higher than every possible edge latency measurement.
BThe cloud cannot store enough historical evidence for later incident review.
CEdge hardware has no maintenance cost after it is installed in the field.
DTail latency and outages can exceed the safety budget even when the average looks acceptable.
Show answer

Answer: D Safety design must account for worst tolerated response and failure modes, not only average round-trip time.

iotclass.org

Print reference

Answers

Answer key.

  1. D · A hard latency or availability requirement can make cloud placement ineligible before cost comparisons matter.
  2. B · The hard shutdown deadline belongs near the machine, while weekly retraining benefits from cloud history and compute.
  3. D · Lifecycle work and action proof are part of edge cost.
  4. B · The safety boundary cannot be traded away by a weak financial return.
  5. D · Safety design must account for worst tolerated response and failure modes, not only average round-trip time.
iotclass.org