Internet of Things (IoT)
The Internet of Things (IoT) connects physical devices with sensors and software so that they exchange data over the network. In Azure, IoT Hub is the central messaging service between devices and the cloud application.
The Internet of Things (IoT) connects physical devices that carry sensors and software so that they exchange data over the network. Typical are readings that a device sends to a cloud application, and commands that go the other way.
What sets IoT devices apart from browsers
Microsoft describes IoT devices as different from ordinary clients such as browsers or mobile apps:
- They are often embedded systems without an operator, such as a sensor or an actuator.
- They are sometimes located in places that are hard to reach.
- They can sometimes only be reached through your cloud services, for example behind a firewall.
- Computing power and electricity are scarce, and the connection is at times slow, interrupted, or expensive.
- Some of them speak protocols of their own or of their industry, such as MQTT or AMQP.
For development, this means: the other side has to expect lost connections and duplicate and late messages. That is the same problem as with any message processing (idempotency, queues, dead letters).
IoT in Azure
Azure IoT Hub is a managed service that serves as the central message hub between an IoT application and its devices. It supports messages from the device to the cloud, file upload from the device, and request-response calls with which the cloud controls a device. Every device has an identity of its own in the hub's registry and signs in with a SAS token or an X.509 certificate. Incoming data can be routed, for example to Blob Storage, Event Hubs, Service Bus, or Cosmos DB, or distributed to several subscribers through Event Grid.
For .NET developers, this usually means: the device has a client of its own, and your application in Azure reads messages from the hub or reacts to events. The hub delivers data that you process further, for example in a background service or a web app.
How it differs
- IoT and the cloud: The cloud is the place where data arrives and is processed. IoT is the device side in front of it.
- IoT and big data: Devices can produce a great many readings. Whether this becomes big data depends on the volume, not on the term.
- Security: Every device needs an identity of its own. One shared password for all of them is not a design but a risk.
In the course
The academy does not teach IoT as a topic of its own. But you learn the building blocks of the cloud side in K3, module 3.5, for example in Why messages, Service Bus: queues, and Event Grid.
Further reading on the blog
Sources
- Microsoft Learn, What is Azure IoT Hub?: https://learn.microsoft.com/azure/iot-hub/iot-concepts-and-iot-hub
- Microsoft Learn, Choose an Azure IoT service: https://learn.microsoft.com/azure/iot/iot-services-and-technologies