Chapters

2 Cloud Computing Fundamentals for IoT

reference-architectures
cloud
computing

2.1 Start With a Shared Cloud Job

Picture a cold-store alarm during an internet outage. The local unit still has to protect the food. The remote service can wait for the full record. This split is the first cloud choice.

A gateway is a local device or service that joins field devices to a wider network. Telemetry means time-stamped reports about device state and events. Firmware is the software stored on a device. The cloud can hold history, join fleet records, run long jobs, and show many sites at once. It should not own a fast or safe action when a lost link would make that action fail.

Start with one job and ask:

  • Must it happen at once?
  • Must it work offline?
  • How much data must be kept?
  • Who needs the shared view?
  • What state belongs near the device?
  • What state belongs in the cloud?
  • How will queued records keep their time?
  • What happens when the link returns?
  • Who owns a failed upload?
  • What proof allows release?

Shared capacity can grow when demand grows. It can also fail, slow down, or cost more than planned. Name those limits before choosing a vendor. Practitioner compares placement, storage, identity, cost, and recovery records. Under the Hood covers service models, shared resources, failure zones, and proof boundaries. That detail extends the outage story; it does not remove the need for local control.

Keep the split easy to retell. Fast safe work stays local. Shared history can move outward. Queued records keep event time. A failed link has an owner.

Imagine a building gateway that sends alarms, routine telemetry, dashboard updates, and firmware evidence to the same cloud account. The first architecture move is to separate what must respond immediately from what can be stored, queued, analyzed, or reviewed later.

Start simple: describe the job the cloud is doing for one device group before naming a provider or service. Once the job is clear, capacity, resilience, placement, and evidence boundaries become easier to judge.

2.2 Shared Cloud Capacity for IoT

Cloud computing lets an IoT system use shared remote compute, storage, networking, and application services through network APIs. It is valuable for ingestion, durable storage, fleet analytics, dashboards, device management, and long-running review evidence. It does not remove the need for edge processing: local control, filtering, buffering, and outage behavior still belong near devices when timing, safety, or connectivity require it.

NIST describes cloud computing through five essential characteristics: on-demand self-service, broad network access, resource pooling, rapid elasticity, and measured service. For IoT, those characteristics are useful only when they are mapped to real workload boundaries and failure behavior.

Consider a cold-chain fleet with temperature probes, cellular gateways, and a cloud operations portal. The cloud side might use AWS IoT Core, Azure IoT Hub, Google Cloud Pub/Sub, Amazon S3, Cloud Storage, BigQuery, TimescaleDB, or Grafana-style dashboards to accept events, retain history, summarize exceptions, and show fleet status. Those products do not decide the architecture by themselves. The architecture decision is whether each workload benefits from shared capacity, central visibility, managed identity, durable storage, or elastic processing.

The same fleet still needs local behavior. A gateway may keep an MQTT or HTTPS queue while offline, reject malformed sensor records, preserve the last safe alarm threshold, and buffer readings until a mobile link returns. A site controller may keep refrigeration alarms independent from any cloud dashboard. Cloud fundamentals therefore start with a boundary: what is safe to centralize, what must remain local, and what evidence shows the boundary works during normal traffic, burst traffic, and outage recovery. Measured service then turns that boundary into quotas, cost signals, and capacity warnings.

Use the diagram Figure 2.1 to ground shared cloud capacity for iot visually. Its specific claim is: Cloud is a service model with reviewable characteristics, not just a remote data-centre label. Begin with NIST Cloud Computing Model and keep runtime environments in view.

NIST cloud computing model showing the essential characteristics dimension with on-demand self-service, broad network access, resource pooling, rapid elasticity, and measured service.
Figure 2.1: Cloud is a service model with reviewable characteristics, not just a remote data-centre label.

Begin the diagram Figure 2.1 with NIST Cloud Computing Model. Continue through runtime environments before checking deployed as. This path preserves the chapter’s shared cloud capacity for iot argument: Cloud is a service model with reviewable characteristics, not just a remote data-centre label.

On-Demand Self-Service

Teams can request and change resources through controlled automation instead of informal manual setup.

Broad Network Access

Gateways, applications, and operators reach services through standard network mechanisms with explicit identity and policy.

Resource Pooling

Shared infrastructure supports multiple workloads while isolation protects data, keys, environments, and ownership.

Rapid Elasticity

Capacity can expand and contract around bursts such as reconnect storms, firmware waves, alarms, and seasonal reporting.

Measured Service

Usage evidence supports capacity planning, retention review, accountability, abuse detection, and operations ownership.

Reviewers need the diagram Figure 2.2 before accepting shared cloud capacity for iot. The proposition under review is: The architectural shift combines shared cloud services with useful compute at fog gateways and edge devices. Its visible anchors include How Technology Convergence Supports IoT Patterns and many streams before.

Hardware, networks, software and demand jointly support Edge Computing, Fog Computing, Edge AI/ML and Wireless Sensor Networks. Choose placement by constraint; no single event produced these patterns.
Figure 2.2: The architectural shift combines shared cloud services with useful compute at fog gateways and edge devices.

Read Figure 2.2 from How Technology Convergence Supports IoT Patterns toward many streams before. Use Hardware, networks, software, and demand converged as the shared cloud capacity for iot endpoint. The resulting visual statement is: The architectural shift combines shared cloud services with useful compute at fog gateways and edge devices.

Design question: use cloud when shared visibility, durable evidence, elastic capacity, or fleet coordination is worth the network, identity, data, and operations boundaries.

2.3 Workload Placement by Constraints

A practical cloud decision starts by tracing the IoT data flow. Devices sense and act. Gateways validate, translate, filter, buffer, and protect local continuity. Cloud services ingest, store, process, and share information. Operations teams review behavior and push approved changes back through controlled channels.

Write the path as a workload map before selecting a service. In a building-monitoring deployment, BACnet or Modbus devices may feed a site gateway, the gateway may publish normalized MQTT events, and the cloud may land them in a time-series store for dashboards and compliance reports. If a thermostat command, fire-damper signal, or freezer alarm cannot wait for an internet round trip, it stays local. If a monthly energy benchmark, remote certificate inventory, or model-training dataset needs fleet-wide comparison, it fits cloud-side processing.

Use the diagram Figure 2.3 to ground workload placement by constraints visually. Its specific claim is: A cloud path is reviewable when every handoff has a responsibility, identity, and failure behaviour. Begin with Site and edge and keep Storage in view.

IoT data flow from devices through gateway validation and buffering to cloud ingestion, storage, analytics, dashboards, and controlled return paths.
Figure 2.3: A cloud path is reviewable when every handoff has a responsibility, identity, and failure behaviour.

Keep Site and edge, Storage, and approved configuration or model updates return through a controlled path separate while reading Figure 2.3. The diagram makes Site and edge a visible workload placement by constraints cue; its Storage relationship advances the claim: A cloud path is reviewable when every handoff has a responsibility, identity, and failure behaviour.

Review Check
Cloud-Fit Evidence
Edge-Fit Evidence
Common Failure
Timing
Decision can tolerate network travel, queues, and remote processing.
Decision must continue during link loss or tight local control windows.
A remote dashboard is placed in a safety or alarm loop.
Sensitivity
Data is minimized, classified, protected, and approved for central processing.
Raw data exposes personal, operational, safety, or proprietary context.
Raw telemetry moves before classification or retention rules exist.
Connectivity
Retry, queue, deduplication, and back-pressure behavior are recorded.
Gateway or site service must buffer, filter, or act while disconnected.
Normal online behavior is treated as proof of outage behavior.
Ownership
Cloud workload has owners for access, scaling, retention, alerts, and rollback.
Site workload has operators, local procedures, and safe-state authority.
No one owns the boundary after handoff between device, gateway, cloud, and operator.

The chapter needs visual evidence for workload placement by constraints. Figure 2.4 provides it: Placement should follow workload evidence, not a generic preference for cloud or edge. Examine Edge or site together with connectivity.

Edge-cloud workload boundary separating local control and raw sensitive data from approved summaries, analytics, dashboards, and fleet coordination.
Figure 2.4: Placement should follow workload evidence, not a generic preference for cloud or edge.

Map Edge or site to the current requirement in Figure 2.4. Map connectivity to the next duty and observe, and control return traffic to the later proof. This continues workload placement by constraints: Placement should follow workload evidence, not a generic preference for cloud or edge.

2.3.1 Building Monitoring Example

A useful placement review asks for a concrete operating story. Suppose a university has twenty buildings, each with air-quality sensors, chilled-water meters, occupancy counters, and a gateway that can buffer several hours of records. The cloud path can compare CO2 trends across buildings, calculate weekday energy baselines, show Grafana or Looker dashboards to facilities staff, and retain audit trails for maintenance decisions. The site path should still enforce local ventilation fallback, handle gateway disk-full behavior, and keep certificate rotation, topic authorization, and failed-upload alerts visible to the operations team.

Cloud-Side

Fleet dashboards, hourly summaries, device inventory, certificate lifecycle records, trend analysis, and maintenance reports.

Site-Side

Ventilation fallback, local alarms, gateway filtering, short-term buffering, and protocol translation for building systems.

Hybrid

Approved summaries move to cloud while local gateways keep outage behavior and raw high-frequency signals under site control.

2.4 Cloud Evidence Boundaries

Under the hood, an IoT cloud design is a chain of service contracts. A device event becomes a gateway record, an ingestion decision, a storage item, an analytic result, an operator view, and sometimes a return-path change. Each step needs identity, data classification, failure behavior, observability, and ownership.

A cloud placement is weak if it relies on changing product names, pricing examples, or marketing claims. A stronger choice captures the workload intent, the cloud characteristic being used, the edge boundary, the data class, the timing class, the failure behavior, and the owner who can revisit the assumption when workload or risk changes.

One telemetry record shows why the boundary matters. A sensor measurement may include a device identity, firmware version, timestamp, sequence number, site id, unit, quality flag, and payload schema version. The gateway may validate it, add an idempotency key, write it to a local queue, and publish it through MQTT over TLS. The cloud ingress layer may authenticate the certificate, check topic authorization, reject unexpected fields, place the record on an event bus, and write different copies to short-retention raw storage and longer-retention aggregates.

That chain creates operational questions that cannot be answered by the word cloud alone. What happens when the MQTT broker throttles a reconnect storm? Which messages are safe to replay? Which raw records are deleted after seven days, and which hourly summaries remain for compliance? Which alert is raised when schema validation fails? Which operator can approve a configuration change that travels back through the cloud to the gateway? Durable evidence is the combination of logs, queue metrics, schema versions, access records, runbooks, and rollback paths that show those answers were designed rather than assumed.

Reviewers need the diagram Figure 2.5 before accepting cloud evidence boundaries. The proposition under review is: A review record ties each cloud placement to the telemetry fields, gateway queue behavior, identity checks, retention windows, metrics, and owner signoff that operations can test later. Its visible anchors include Cloud Placement Review Record and hourly summary.

Cloud fundamentals review record following a telemetry record from device identity, firmware, timestamp, sequence number, and site id through gateway validation, MQTT over TLS ingress, raw seven-day retention, hourly summaries, metrics, and owner signoff.
Figure 2.5: A review record ties each cloud placement to the telemetry fields, gateway queue behavior, identity checks, retention windows, metrics, and owner signoff that operations can test later.

Figure 2.5 becomes useful when Cloud Placement Review Record is read alongside hourly summary. owner signoff adds the remaining acceptance cue. This supports cloud evidence boundaries. The visual summarizes: A review record ties each cloud placement to the telemetry fields, gateway queue behavior, identity checks, retention windows, metrics, and owner signoff that operations can test later.

Ingestion Contract

Define accepted event shape, identity, duplicate handling, malformed message behavior, queue limits, and retry expectations.

Storage Contract

Define raw versus summary records, retention, deletion, access roles, audit trails, and archive boundaries.

Analytics Contract

Define batch or streaming behavior, evidence freshness, model update approval, and how results are checked before action.

Return-Path Contract

Define who can change configuration, models, or firmware, plus rollout, monitoring, rollback, and local override conditions.

Failure mode: treating a successful online dashboard as proof that the architecture survives outage, burst load, unsafe return paths, data over-collection, or ownership drift.

2.5 Summary

Cloud computing gives IoT systems shared, automated, network-accessible, elastic, and measured resources. Those properties support ingestion, storage, analytics, dashboards, identity, updates, and fleet operations when the design also records local timing, data, connectivity, and ownership boundaries.

The architecture is strong only when cloud responsibilities are separated from edge responsibilities. Immediate safety, local fallback, raw-data minimization, and outage behavior need explicit placement evidence instead of a generic claim that cloud is scalable.

2.6 Key Takeaway

Use cloud for IoT when shared visibility, durable evidence, elastic capacity, or fleet coordination are needed. Approve the placement only with evidence for data class, timing, edge responsibility, failure behavior, observability, ownership, and future review conditions.

2.7 See Also

2.7.1 Cloud Service Models

Separate IaaS, PaaS, and SaaS responsibilities before choosing cloud runtime patterns.

2.7.2 Cloud Deployment Models

Compare public, private, community, hybrid, and edge-cloud placement boundaries.

2.7.3 Cloud Security for IoT

Review identity, data protection, monitoring, and shared-responsibility evidence.

2.7.4 Production Cloud Deployment

Plan quotas, back-pressure, rollout safety, observability, and recovery drills.